Updated zsh dotfiles loader

This commit is contained in:
Eric Renfro 2022-07-24 19:44:07 -04:00
parent 8d12b8c950
commit 23dbb55f14
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 while read f
do do
source "$f" 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: # Include local functions/aliases/environments:
while read f while read f
do do
if [[ -f "$(zpath "$f")" ]]; then #if [[ -f "$(zpath "$f")" ]]; then
source "$f" # source "$f"
fi #fi
done < <(find "${HOME}/.local/dotfiles/" -name '*.zsh') source "$f"
done < <(find "${HOME}/.local/dotfiles/" \( -type l -o -type f \) -name '*.zsh')
# Disable Ctrl+S Scroll-Locking # Disable Ctrl+S Scroll-Locking
stty -ixon stty -ixon