diff options
author | Himbeer <himbeerserverde@gmail.com> | 2024-02-18 18:07:26 +0100 |
---|---|---|
committer | Himbeer <himbeerserverde@gmail.com> | 2024-02-18 18:07:26 +0100 |
commit | abaddcacb4ff98f2abed95a00a7023a828377c29 (patch) | |
tree | 6967af7a9243300ec233613a5f423ca2a7046e8a | |
parent | e5b9c2d1158c456c5d6713f3fcd42e24d600ba30 (diff) |
fix mkcd not cd'ing: replace with shell function
-rwxr-xr-x | bin/mkcd | 4 | ||||
-rw-r--r-- | zshrc | 4 |
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} @@ -62,3 +62,7 @@ source ~/.zsh_aliases # fzf source ~/.zsh_fzf_key_bindings source ~/.zsh_fzf_completion + +mkcd() { + mkdir $1 && cd $1 +} |