From 6e8f41fe3b5902194641eee0dacd3816f0765ec8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 1 Jan 2015 16:34:07 -0500 Subject: bash emacs integration: if DISPLAY=nil, unset it --- .config/bash/rc.d/emacs.sh | 1 + 1 file changed, 1 insertion(+) (limited to '.config/bash') 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 ##################################################### -- cgit v1.2.3