Updated zsh dotfiles loader

This commit is contained in:
Eric Renfro 2022-07-24 19:44:07 -04:00
parent a942042bcc
commit 2ea129fab7
3 changed files with 7 additions and 6 deletions

View file

@ -1 +1 @@
alias code="FLATPAK_ENABLE_SDK_EXT=golang,rust-stable,php74 flatpak run com.visualstudio.code"
alias code='FLATPAK_ENABLE_SDK_EXT="golang,rust-stable,php74" flatpak run com.visualstudio.code'

View file

@ -3,6 +3,6 @@ function reload_dotfiles ()
while read f
do
source "$f"
done < <(find "${HOME}/.local/dotfiles" -type f -name '*.zsh')
done < <(find "${HOME}/.local/dotfiles" \( -type l -o -type f \) -name '*.zsh')
}

9
.zshrc
View file

@ -154,10 +154,11 @@ zpath() { cd -P . || return
# Include local functions/aliases/environments:
while read f
do
if [[ -f "$(zpath "$f")" ]]; then
source "$f"
fi
done < <(find "${HOME}/.local/dotfiles/" -name '*.zsh')
#if [[ -f "$(zpath "$f")" ]]; then
# source "$f"
#fi
source "$f"
done < <(find "${HOME}/.local/dotfiles/" \( -type l -o -type f \) -name '*.zsh')
# Disable Ctrl+S Scroll-Locking
stty -ixon