From 5f7a33b4c387b1de681b06b7f30c3303d40b064e Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:16:03 +1000 Subject: [PATCH] zsh: alias trash to rm safer deletions now on darwin and linux --- modules/shell.nix | 2 +- stow/.zshrc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/shell.nix b/modules/shell.nix index 99b4787..3c90367 100644 --- a/modules/shell.nix +++ b/modules/shell.nix @@ -25,7 +25,7 @@ ffmpeg imagemagick - ]; + ] ++ lib.optionals pkgs.stdenv.isLinux [ pkgs.trash-cli ]; programs.tmux.enable = true; documentation.man.enable = true; diff --git a/stow/.zshrc b/stow/.zshrc index 0244574..8945d27 100644 --- a/stow/.zshrc +++ b/stow/.zshrc @@ -44,6 +44,7 @@ alias ls="ls -h --color=auto" alias la="ls -ah --color=auto" alias ll="ls -ahl --color=auto" alias cat="bat" +alias rm="trash" alias tmux="tmux -f $HOME/.config/tmux/tmux.conf" # needed for osx systems for some reason