zsh: alias trash to rm

safer deletions now on darwin and linux
This commit is contained in:
Nico 2025-05-03 16:16:03 +10:00
parent 24db8b66f2
commit 5f7a33b4c3
2 changed files with 2 additions and 1 deletions

View file

@ -25,7 +25,7 @@
ffmpeg ffmpeg
imagemagick imagemagick
]; ] ++ lib.optionals pkgs.stdenv.isLinux [ pkgs.trash-cli ];
programs.tmux.enable = true; programs.tmux.enable = true;
documentation.man.enable = true; documentation.man.enable = true;

View file

@ -44,6 +44,7 @@ alias ls="ls -h --color=auto"
alias la="ls -ah --color=auto" alias la="ls -ah --color=auto"
alias ll="ls -ahl --color=auto" alias ll="ls -ahl --color=auto"
alias cat="bat" alias cat="bat"
alias rm="trash"
alias tmux="tmux -f $HOME/.config/tmux/tmux.conf" # needed for osx systems for some reason alias tmux="tmux -f $HOME/.config/tmux/tmux.conf" # needed for osx systems for some reason