diff options
| author | Simen A. W. Olsen <hello@simenandre.no> | 2024-12-27 21:01:47 +0100 |
|---|---|---|
| committer | Simen A. W. Olsen <hello@simenandre.no> | 2024-12-27 21:01:47 +0100 |
| commit | a3202c31c23624861f4e721f809cde786c918c22 (patch) | |
| tree | dcfc64edd716a334bb68a71cde5a4ed2121a7e2c | |
| parent | 6b675aea66b80a23e3f3c40b0904d576577781a5 (diff) | |
| download | dotfiles-a3202c31c23624861f4e721f809cde786c918c22.tar.gz dotfiles-a3202c31c23624861f4e721f809cde786c918c22.zip | |
add sourcing of the other files in zsh
| -rwxr-xr-x | zsh/.config/zsh/.zshrc | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
