ensure path is windows-ok
This commit is contained in:
parent
082b6d2847
commit
b71fe74a32
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ function trash --description "Move file or directory to the windows recycle bin.
|
||||||
end
|
end
|
||||||
|
|
||||||
# Move file to trash
|
# Move file to trash
|
||||||
set file "$argv[1]"
|
set file (string replace -a \\ \\\\ (wslpath -w $argv[1]))
|
||||||
powershell.exe -Command "& {" \
|
powershell.exe -Command "& {" \
|
||||||
" Add-Type -AssemblyName 'Microsoft.VisualBasic';" \
|
" Add-Type -AssemblyName 'Microsoft.VisualBasic';" \
|
||||||
" Get-ChildItem -Path '$file' | ForEach-Object {" \
|
" Get-ChildItem -Path '$file' | ForEach-Object {" \
|
||||||
|
|
Loading…
Reference in a new issue