From cf95a6e321a12797016c8998b64d9e3ca3c6bf41 Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 21 Oct 2022 07:06:55 -0700 Subject: [PATCH] env: alias to mkdir + pushd --- modules/universal/env/home-manager.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/universal/env/home-manager.nix b/modules/universal/env/home-manager.nix index 636beac9..a85aaac5 100644 --- a/modules/universal/env/home-manager.nix +++ b/modules/universal/env/home-manager.nix @@ -281,6 +281,11 @@ in # zmv is a way to do rich moves/renames, with pattern matching/substitution. # see for an example: autoload -Uz zmv + + function nd() { + mkdir -p "$1"; + pushd "$1"; + } ''; # prezto = oh-my-zsh fork; controls prompt, auto-completion, etc.