Skip to content

Commit 1b79d10

Browse files
authored
Shdo: match both pwsh and powershell #191
1 parent 7c4dc59 commit 1b79d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dirvish.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function! dirvish#shdo(paths, cmd) abort
108108
let cmd = a:cmd =~# '\V{}' ? a:cmd : (empty(a:cmd)?'{}':(a:cmd.' {}')) "DWIM
109109
" Paths from argv() or non-dirvish buffers may be jagged; assume CWD then.
110110
let dir = !jagged && exists('b:dirvish') ? b:dirvish._dir : getcwd()
111-
let tmpfile = tempname().(&sh=~?'cmd.exe'?'.bat':(&sh=~'powershell'?'.ps1':'.sh'))
111+
let tmpfile = tempname().(&sh=~?'cmd.exe'?'.bat':(&sh=~'\(powershell\|pwsh\)'?'.ps1':'.sh'))
112112

113113
for i in range(0, len(lines)-1)
114114
let f = substitute(lines[i], escape(s:sep,'\').'$', '', 'g') "trim slash

0 commit comments

Comments
 (0)