Skip to content

Commit f47edd6

Browse files
committed
Attempt the proposal to treat git-bash like a Unix shell environment.
See: #3002 (comment)
1 parent 1c1fde6 commit f47edd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugin/fzf.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ if exists('g:loaded_fzf')
2626
endif
2727
let g:loaded_fzf = 1
2828

29-
let s:is_win = has('win32') || has('win64')
29+
# On Windows, cmd.exe does not define a `SHELL` env var, whereas git-bash does.
30+
# Treat git-bash environment like a Unix shell.
31+
let s:is_win = has('win32') || has('win64') && !exists('$SHELL')
3032
if s:is_win && &shellslash
3133
set noshellslash
3234
let s:base_dir = expand('<sfile>:h:h')

0 commit comments

Comments
 (0)