diff options
Diffstat (limited to 'plugin/max-find-shell.vim')
-rw-r--r-- | plugin/max-find-shell.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugin/max-find-shell.vim b/plugin/max-find-shell.vim new file mode 100644 index 0000000..778f0fb --- /dev/null +++ b/plugin/max-find-shell.vim | |||
@@ -0,0 +1,11 @@ | |||
1 | "======================================================================================================================= | ||
2 | " SHELL: | ||
3 | " Many scripts rely on bash. We help to find the bash binary | ||
4 | "======================================================================================================================= | ||
5 | if filereadable("/bin/bash") | ||
6 | set shell=/bin/bash | ||
7 | elseif filereadable("/usr/local/bin/bash") | ||
8 | set shell=/usr/local/bin/bash | ||
9 | elseif has("win32") | ||
10 | set shell="cmd.exe" | ||
11 | endif | ||