From f4c3dc7bbb8a68abe1c876b2a7feb81461e68cf1 Mon Sep 17 00:00:00 2001 From: Dilan Gilluly Date: Tue, 28 Oct 2025 22:43:26 -0400 Subject: [PATCH] (add): mkcd function --- .config/.dg-shell.zsh | 9 +++++++++ .config/VSCodium/User/snippets/python.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.config/.dg-shell.zsh b/.config/.dg-shell.zsh index c2f8718..3e60e06 100644 --- a/.config/.dg-shell.zsh +++ b/.config/.dg-shell.zsh @@ -32,3 +32,12 @@ function cv() { source ~/python-venv/default/bin/activate fi } + +function mkcd() { + if [ ! -d $1 ]; then + mkdir -p $1 + fi + if [ -d $1 ]; then + cd $1 + fi +} \ No newline at end of file diff --git a/.config/VSCodium/User/snippets/python.json b/.config/VSCodium/User/snippets/python.json index 734a1a1..1960c7b 100644 --- a/.config/VSCodium/User/snippets/python.json +++ b/.config/VSCodium/User/snippets/python.json @@ -9,4 +9,4 @@ "\tmain()" ] } - } \ No newline at end of file +} \ No newline at end of file