From f7c7947f80277f857508b1edf3639c5479e65e3c Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Fri, 30 May 2025 14:20:16 +0200 Subject: [PATCH] Add mkcd command --- zsh/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index c4ee50f..cd30e43 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -197,6 +197,11 @@ rmdf() { rm -rf "$(fzfd)" } +mkcd() { + local p=$1 + mkdir -p $p && cd $p +} + # Check if tmux is already running or if the session is interactive if [[ -z "$TMUX" ]] && [[ $- == *i* ]]; then # Create a new tmux session, if one doesnt exist, give it the main name, never attach to a session