diff options
author | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-08-10 16:27:14 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@openwide.fr> | 2009-08-10 16:27:14 +0200 |
commit | e5f39ec71ed08d04ef3a38f3bc56ebfeaaf1e49b (patch) | |
tree | c51c843b64f72c763efbca54985f26cee14f374d | |
parent | b7465ec2b06b53c942f56c6450422fcdd423fdd7 (diff) |
[Env] DISPLAY guessing better-ed
-rw-r--r-- | 10_Environment.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/10_Environment.zsh b/10_Environment.zsh index faef244..0e0ef35 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -72,7 +72,7 @@ export GPG_TTY=`tty` # Display guess CURRENT_DISPLAY=$(finger | tail -n+2 | grep -E $USER'[[:blank:]]+.*[[:blank:]]+tty[0-9][[:blank:]]+($DISPLAY)' | head -n1 | cut -d'(' -f2 | cut -d')' -f1) -if [ "$DISPLAY" = "" -o "$CURRENT_DISPLAY" = "" ] +if [ "$DISPLAY" = "" -a "$CURRENT_DISPLAY" = "" ] then GUESS_DISPLAY=$(finger | tail -n+2 | grep -E $USER'[[:blank:]]+.*[[:blank:]]+tty[0-9]' | head -n1 | cut -d'(' -f2 | cut -d')' -f1) if [ "$GUESS_DISPLAY" != "" ] |