Consolidate rgenv and update aliases files

This commit is contained in:
Eric Torres
2022-12-07 18:59:49 -08:00
parent 5d7c4005b8
commit 5622ac654a
3 changed files with 18 additions and 38 deletions

View File

@ -61,6 +61,14 @@ mkcd() {
autoload -Uz mkcd
rgenv () {
if [[ -n $1 ]]; then
env | rg --ignore-case $1
else
return 0
fi
}
# Detect OS to autoload uncommon config files
if [[ "$(uname)" =~ "Darwin" ]]; then
for dotfile in "$XDG_CONFIG_HOME"/zsh-macos/*(.); do