diff --git a/.config/fish/functions/trash.fish b/.config/fish/functions/trash.fish index 32a414a..e7780c2 100644 --- a/.config/fish/functions/trash.fish +++ b/.config/fish/functions/trash.fish @@ -9,7 +9,7 @@ function trash --description "Move file or directory to the windows recycle bin. end # Move file to trash - set file "$argv[1]" + set file (string replace -a \\ \\\\ (wslpath -w $argv[1])) powershell.exe -Command "& {" \ " Add-Type -AssemblyName 'Microsoft.VisualBasic';" \ " Get-ChildItem -Path '$file' | ForEach-Object {" \