summaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-10-25 12:40:20 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2023-10-25 12:40:20 -0400
commit6ccb0c265a8a5cd9d491f40c9812f84ad7fac4a9 (patch)
tree7a11b57f95e81e94528181caa8c3724536ed909f /.config/zsh
parent4bab74779bcc7b5dcb1cb63e8eb7bec74519eb2f (diff)
xinitrc sources per-hostname configs
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 60790f1..ca70102 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -80,6 +80,12 @@ RPROMPT="\$vcs_info_msg_0_ %B%F{magenta}(%B%F{cyan}%1/%B%F{magenta})"
zstyle ':vcs_info:git:*' formats '%b'
+# Quickly navigate to a created directory
+function mkcd() {
+ mkdir -p -- "$1" &&
+ cd -P -- "$1"
+}
+
# Loading shortcuts made by aliasgen and shortcutgen
source $HOME/.cache/zsh-aliases*
source $HOME/.cache/zsh-shortcuts