From 92f410d4fd9ed3147d710815220a3d54239d1b46 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Wed, 31 Jan 2024 18:37:21 -0300 Subject: [PATCH] feat: add a 'del' command to fish to move items to the trash directory --- programs/fish/config.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/programs/fish/config.nix b/programs/fish/config.nix index c2540e9..bbb55d7 100644 --- a/programs/fish/config.nix +++ b/programs/fish/config.nix @@ -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 + ''; }; }; }