From 18b086ca45de734d7e8922696a969a61da758beb Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 1 Jan 2024 18:26:56 +0100 Subject: [PATCH] fix --- .config/fish/functions/trash.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/fish/functions/trash.fish b/.config/fish/functions/trash.fish index e7780c2..58f7861 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 (string replace -a \\ \\\\ (wslpath -w $argv[1])) + set file (wslpath -w $argv[1]) powershell.exe -Command "& {" \ " Add-Type -AssemblyName 'Microsoft.VisualBasic';" \ " Get-ChildItem -Path '$file' | ForEach-Object {" \