aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeerserverde@gmail.com>2024-02-18 18:07:26 +0100
committerHimbeer <himbeerserverde@gmail.com>2024-02-18 18:07:26 +0100
commitabaddcacb4ff98f2abed95a00a7023a828377c29 (patch)
tree6967af7a9243300ec233613a5f423ca2a7046e8a
parente5b9c2d1158c456c5d6713f3fcd42e24d600ba30 (diff)
fix mkcd not cd'ing: replace with shell function
-rwxr-xr-xbin/mkcd4
-rw-r--r--zshrc4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/mkcd b/bin/mkcd
deleted file mode 100755
index 96c48ac..0000000
--- a/bin/mkcd
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /bin/bash
-
-DIR=$(mkdir $* | tail -n 1)
-cd ${DIR}
diff --git a/zshrc b/zshrc
index 6e7b651..0222c90 100644
--- a/zshrc
+++ b/zshrc
@@ -62,3 +62,7 @@ source ~/.zsh_aliases
# fzf
source ~/.zsh_fzf_key_bindings
source ~/.zsh_fzf_completion
+
+mkcd() {
+ mkdir $1 && cd $1
+}