diff options
author | Hugues Hiegel <hugues.hiegel@anevia.com> | 2017-06-30 14:33:59 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@anevia.com> | 2017-06-30 14:33:59 +0200 |
commit | 2f9cb6f18255cc7243a6ed2a0c452c1aee936fe1 (patch) | |
tree | 34a671bed74a02e5ebf00bd8150a3e1407f6dd7c /10_Environment.zsh | |
parent | 549c79795996df04500fdd203b3722ba488b99fa (diff) |
Modifs en vracanevia
Diffstat (limited to '10_Environment.zsh')
-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 6df2e25..e21a5fe 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -95,7 +95,7 @@ fi _current_display=$(finger 2>&- | tail -n+2 | grep -E $USER'[[:blank:]]+.*[[:blank:]]+tty[0-9][[:blank:]]+($DISPLAY)' | head -n1 | cut -d'(' -f2 | cut -d')' -f1) if [ "$DISPLAY" = "" -a "$_current_display" = "" ] then - _guess_display=$(finger 2>&- | tail -n+2 | grep -E $USER'[[:blank:]]+.*[[:blank:]]+tty[0-9]' | head -n1 | cut -d'(' -f2 | cut -d')' -f1) + _guess_display=$(finger | awk '( NR > 1 && $8 ~ /:[0-9]/ ) { print $8 ; exit }' | tr -d '()') if [ "$_guess_display" != "" ] then export DISPLAY=$_guess_display |