From 41c22321664abcaedb546053ec1cc41134575ca5 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Fri, 24 Nov 2017 21:05:48 -0500 Subject: [PATCH] [utility] Move mkcd to functions subdirectory Now that we have a general digest file that can contain all the functions from all active modules, we can add functions to any of them without the need to update the `fpath`. --- modules/utility/functions/mkcd | 1 + modules/utility/init.zsh | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) create mode 100644 modules/utility/functions/mkcd diff --git a/modules/utility/functions/mkcd b/modules/utility/functions/mkcd new file mode 100644 index 0000000..4f795ce --- /dev/null +++ b/modules/utility/functions/mkcd @@ -0,0 +1 @@ +[[ -n ${1} ]] && mkdir -p ${1} && builtin cd ${1} diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 2692d89..85debb6 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -110,12 +110,3 @@ fi if (( ${+commands[safe-rm]} && ! ${+commands[safe-rmdir]} )); then alias rm='safe-rm' fi - - -# -# Misc -# - -mkcd() { - [[ -n ${1} ]] && mkdir -p ${1} && builtin cd ${1} -}