From 1e46e31b957711d73716a23387a06eff90de1cd5 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Mon, 20 Mar 2023 15:50:22 +0000 Subject: [PATCH] Add mkcd function from omz --- nix-conf/home/includes/zsh.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 1c758b2..f074194 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -185,6 +185,11 @@ in cd "$DIR" } + # From omz + function mkcd () { + mkdir -p $@ && cd ''${@:$#} + } + tre () { command tre "$@" -e && source "/tmp/tre_aliases_$USER" 2>/dev/null; } function gcd () {