From 470411212a7b4c282c0e22e3a3fd93307cf57fdb Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Sat, 18 Nov 2023 01:09:43 +0100 Subject: zsh: add tempdir alias The added alias creates a temporary directory using mktemp and cd's into it. --- share/home/zsh.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'share/home/zsh.nix') diff --git a/share/home/zsh.nix b/share/home/zsh.nix index 8b5f2b3..4a52f5c 100644 --- a/share/home/zsh.nix +++ b/share/home/zsh.nix @@ -16,6 +16,7 @@ ltg = "ls --git --tree"; ltgi = "ltg --git-ignore"; sl = "sl -awFc5"; + tempdir = "cd $(mktemp -d)"; }; }; home.packages = with pkgs; [ sl ]; -- cgit v1.3.1