Skip to content

Commit

Permalink
Attempt the proposal to treat git-bash like a Unix shell environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnn committed Oct 19, 2022
1 parent 1c1fde6 commit f47edd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ if exists('g:loaded_fzf')
endif
let g:loaded_fzf = 1

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

0 comments on commit f47edd6

Please sign in to comment.