Count Emacs as interactive session

This way, cached programs like rbenv or pyenv are initialized in Emacs
sessions
This commit is contained in:
Henrik Lissner 2018-08-25 20:29:24 +02:00
parent ece4123f77
commit 1010219395
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

2
env Normal file → Executable file
View file

@ -17,7 +17,7 @@ done
## Library
function _is_interactive { [[ $- == *i* ]]; }
function _is_interactive { [[ $- == *i* || -n $EMACS ]]; }
function _is_running {
for prc in "$@"; do