From a3202c31c23624861f4e721f809cde786c918c22 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Fri, 27 Dec 2024 21:01:47 +0100 Subject: add sourcing of the other files in zsh --- zsh/.config/zsh/.zshrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'zsh') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index e9594d7..879967f 100755 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -3,6 +3,7 @@ # https://github.com/koalaman/shellcheck/issues/809 # shellcheck disable=SC1090 # sourced filenames with variables + # Download Znap, if it's not there yet. [[ -r ~/.zsh_repos/znap/znap.zsh ]] || git clone --depth 1 -- \ @@ -15,3 +16,9 @@ znap prompt znap source marlonrichert/zsh-autocomplete znap source zsh-users/zsh-autosuggestions +for file in ~/.config/zsh/{aliases,path,extras}; do + if [[ -r "$file" ]] && [[ -f "$file" ]]; then + # shellcheck source=/dev/null + source "$file" + fi +done -- cgit v1.2.3