add zsh alias for mkcd
authorAndrew Lorimer <andrew@lorimer.id.au>
Thu, 14 Apr 2022 11:58:43 +0000 (21:58 +1000)
committerAndrew Lorimer <andrew@lorimer.id.au>
Thu, 14 Apr 2022 12:00:46 +0000 (22:00 +1000)
zsh/.zshrc
index 5e631ea574e99c06231d42bac821a9edc6599311..c8438e6a22492aab0095af382cab8a4ebed2100e 100755 (executable)
@@ -31,6 +31,17 @@ HIST_STAMPS="dd.mm.yyyy"
 
 DISABLE_UNTRACKED_FILES_DIRTY="true"
 
+# plugins can be found in ~/.oh-my-zsh/plugins/*
+plugins=(git)
+
+# load zmv
+autoload -U zmv
+
+mkcd() {
+  mkdir "$1"
+  cd "$1"
+}
+
 # ---
 # Appearance
 # ---