summaryrefslogtreecommitdiff
path: root/10_Environment.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@openwide.fr>2009-08-10 16:27:14 +0200
committerHugues Hiegel <hugues.hiegel@openwide.fr>2009-08-10 16:27:14 +0200
commite5f39ec71ed08d04ef3a38f3bc56ebfeaaf1e49b (patch)
treec51c843b64f72c763efbca54985f26cee14f374d /10_Environment.zsh
parentb7465ec2b06b53c942f56c6450422fcdd423fdd7 (diff)
[Env] DISPLAY guessing better-ed
Diffstat (limited to '10_Environment.zsh')
-rw-r--r--10_Environment.zsh2
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" != "" ]