Skip to content

Commit fd46fb6

Browse files
committed
Fix #845 Vim suspends in some times
1 parent 1c9fdb6 commit fd46fb6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

vim/settings/path.vim

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
" Set the shell to bash so we inherit its path, to make sure
22
" we inherit its path. This affects :Rtags finding the right
33
" path to homebrewed ctags rather than the XCode version of ctags
4-
set shell=bash\ -i
4+
"
5+
" Use login Shell instead of interactive shell to avoid
6+
" vimdiff suspended at startup
7+
if has("gui_running")
8+
set shell=bash\ -i
9+
else
10+
set shell=bash\ -l
11+
endif

0 commit comments

Comments
 (0)