From 1010219395081e3a32b7bd6d658c041f1ca8a946 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 25 Aug 2018 20:29:24 +0200 Subject: [PATCH] Count Emacs as interactive session This way, cached programs like rbenv or pyenv are initialized in Emacs sessions --- env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 env diff --git a/env b/env old mode 100644 new mode 100755 index ee606d32..cde7f66d --- a/env +++ b/env @@ -17,7 +17,7 @@ done ## Library -function _is_interactive { [[ $- == *i* ]]; } +function _is_interactive { [[ $- == *i* || -n $EMACS ]]; } function _is_running { for prc in "$@"; do