aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2023-11-18 01:09:43 +0100
committerMiran Bastaja <miran.bastaja04@gmail.com>2023-11-18 01:09:43 +0100
commit470411212a7b4c282c0e22e3a3fd93307cf57fdb (patch)
tree15d3830341e678beaae502cc42ae07ad79a86f24
parentfc19dbeea95f35a3a21db6fad66a1896155bad38 (diff)
zsh: add tempdir alias
The added alias creates a temporary directory using mktemp and cd's into it.
-rw-r--r--share/home/zsh.nix1
1 files changed, 1 insertions, 0 deletions
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 ];