feat: add a 'del' command to fish to move items to the trash directory

This commit is contained in:
Alexandre Cavalheiro 2024-01-31 18:37:21 -03:00
parent 8f92d51960
commit 92f410d4fd
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -29,6 +29,10 @@
z = "zoxide";
};
shellAliases = {
del = "trash_file";
};
functions = {
fish_prompt.body = ''
set_color CC241D
@ -38,6 +42,10 @@
fzf_edit.body = ''
fzf --multi --bind 'enter:become(nvim {+})'
'';
trash_file.body = ''
mv $argv ~/.local/share/Trash
'';
};
};
}