From 1f36d4eb75a5f1026379bc635c0d7e756ff4ab5d Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 26 May 2025 11:15:42 +0200 Subject: [PATCH] add trash instead of rm & improve mkdir Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> Former-commit-id: 736fa52b0fc202d2446f90f4f63b9f6fbd5b20e9 --- home/programs/shell/zsh.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/programs/shell/zsh.nix b/home/programs/shell/zsh.nix index d1b799e..7e9c8c7 100644 --- a/home/programs/shell/zsh.nix +++ b/home/programs/shell/zsh.nix @@ -3,7 +3,7 @@ let fetch = config.theme.fetch; # neofetch, nerdfetch, pfetch in { - home.packages = with pkgs; [ bat ripgrep tldr sesh ]; + home.packages = with pkgs; [ bat ripgrep tldr sesh rmtrash trash-cli]; home.sessionPath = [ "$HOME/go/bin" ]; @@ -57,6 +57,9 @@ in { icat = "${pkgs.kitty}/bin/kitty +kitten icat"; cat = "bat --theme=base16 --color=always --paging=never --tabs=2 --wrap=never --plain"; + mkdir = "mkdir -p"; + rm = "${pkgs.rmtrash}/bin/rmtrash"; + rmdir = "${pkgs.rmtrash}/bin/rmdirtrash"; obsidian-no-gpu = "env ELECTRON_OZONE_PLATFORM_HINT=auto obsidian --ozone-platform=x11";