This commit is contained in:
Mylloon 2024-11-04 17:49:02 +01:00
parent d27125c8f7
commit 7874e8630f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -2,12 +2,6 @@ function trash-empty --description "Empty the windows recycle bin."
# Get function name # Get function name
set current_name $(status current-function) set current_name $(status current-function)
# Check if no arguments were provided
if test -z $argv[1]
echo -e "Usage: $current_name"
return 0
end
# Empty trash # Empty trash
powershell.exe -Command "" \ powershell.exe -Command "" \
"\$bin = (New-Object -ComObject Shell.Application).NameSpace(10);" \ "\$bin = (New-Object -ComObject Shell.Application).NameSpace(10);" \