From 2ea129fab7f2c3e9cba00663cc88649719679768 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sun, 24 Jul 2022 19:44:07 -0400 Subject: [PATCH] Updated zsh dotfiles loader --- .local/dotfiles/aliases/vscode.zsh##d.Fedora | 2 +- .local/dotfiles/functions/reload_dotfiles.zsh | 2 +- .zshrc | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.local/dotfiles/aliases/vscode.zsh##d.Fedora b/.local/dotfiles/aliases/vscode.zsh##d.Fedora index a24e04e..7ff4307 100644 --- a/.local/dotfiles/aliases/vscode.zsh##d.Fedora +++ b/.local/dotfiles/aliases/vscode.zsh##d.Fedora @@ -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' diff --git a/.local/dotfiles/functions/reload_dotfiles.zsh b/.local/dotfiles/functions/reload_dotfiles.zsh index 2b9f441..70d19a7 100644 --- a/.local/dotfiles/functions/reload_dotfiles.zsh +++ b/.local/dotfiles/functions/reload_dotfiles.zsh @@ -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') } diff --git a/.zshrc b/.zshrc index cf34dda..cc971a8 100644 --- a/.zshrc +++ b/.zshrc @@ -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