From 3137404199e4b8f519cab352b8d6209feb49ee8b Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 21 Nov 2024 11:25:05 -0500 Subject: [PATCH] global/zsh: fix mktmp function --- users/modules/global/shells/zsh.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/users/modules/global/shells/zsh.nix b/users/modules/global/shells/zsh.nix index 2fcb4e9..13dd6e6 100644 --- a/users/modules/global/shells/zsh.nix +++ b/users/modules/global/shells/zsh.nix @@ -45,6 +45,7 @@ alias "jh"="cd ~ && j" alias "gj"="gcd && j" + unalias mktmp mktmp() { if [ "$1" != "" ]; then dirspec="$1.XXX" @@ -124,10 +125,10 @@ history.path = "$HOME/${dotDir}/.zsh_history"; - shellAliases = main.environment.shellAliases // config.home.shellAliases // { - lsdiskw = "while true; do clear; lsdisk; sleep 1; done"; - mktmp = "mktmp"; # Remove global alias - }; + shellAliases = builtins.removeAttrs + (main.environment.shellAliases // config.home.shellAliases // { + lsdiskw = "while true; do clear; lsdisk; sleep 1; done"; + }) [ "mktmp" ]; oh-my-zsh = { enable = true;