Move mkcd() into OS-specific config dirs
This commit is contained in:
parent
1ff982eac4
commit
7b47b78ac1
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user