Move mkcd() into OS-specific config dirs

This commit is contained in:
Eric Torres 2023-02-03 12:34:44 -08:00
parent 1ff982eac4
commit 7b47b78ac1
3 changed files with 22 additions and 9 deletions

View File

@ -1 +1,16 @@
# Linux-specific zsh configuration
# Make a directory, then change into it
mkcd() {
[[ ! -d "${1}" ]] && gmkdir --parents -- "${1}"
cd "${1}" || exit
}
autoload -Uz mkcd
rgenv () {
if [[ -n $1 ]]; then
env | rg --ignore-case $1
else
return 0
fi
}

View File

@ -1 +1,8 @@
# macOS-specific zsh configuration
# Make a directory, then change into it
mkcd() {
[[ ! -d "${1}" ]] && gmkdir --parents -- "${1}"
cd "${1}" || exit
}
autoload -Uz mkcd

View File

@ -52,15 +52,6 @@ cf() {
autoload -Uz cf
# Make a directory, then change into it
mkcd() {
[[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
cd "${1}" || exit
}
autoload -Uz mkcd
rgenv () {
if [[ -n $1 ]]; then
env | rg --ignore-case $1