diff options
Diffstat (limited to '.config/zsh')
-rw-r--r-- | .config/zsh/.zshrc | 6 |
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 |