diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-01 16:34:07 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-01 16:34:07 -0500 |
commit | 6e8f41fe3b5902194641eee0dacd3816f0765ec8 (patch) | |
tree | 92a89a262f0e866759b44c17c2b6c7d4f8cd01e1 | |
parent | a12f3189bcf6d2cf277acfa7824961b158bd57e6 (diff) |
bash emacs integration: if DISPLAY=nil, unset it
-rw-r--r-- | .config/bash/rc.d/emacs.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/bash/rc.d/emacs.sh b/.config/bash/rc.d/emacs.sh index 12fa9ad..c254ec7 100644 --- a/.config/bash/rc.d/emacs.sh +++ b/.config/bash/rc.d/emacs.sh @@ -85,6 +85,7 @@ if [[ $TERM == eterm* ]]; then # Set the shell's X11 display (emacs -> shell) _emacs_set_shell_DISPLAY() { export DISPLAY=$(_emacs_unquote "$(_emacs_run "(cdr (assoc 'display (frame-parameters)))")") + [[ $DISPLAY != nil ]] || unset DISPLAY } ## Do those things ##################################################### |