[zsh] Implement loading of custom scripts.

This commit is contained in:
Keanu Timmermans 2021-06-23 12:27:02 +02:00
parent a1409e4441
commit f771402007
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
2 changed files with 9 additions and 4 deletions

1
zsh/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
custom

View File

@ -1,11 +1,15 @@
#!/usr/bin/env zsh
K_ZSH_DOTFILES="${0:h}"
# Get this file's current directory and source Dima's zshrc from there
SCRIPT_DIR="$( dirname "$( readlink -f "$0" )" )"
source $SCRIPT_DIR/../dmitmel-dotfiles/zsh/zshrc
K_ZSH_DOTFILES="$( dirname "$( readlink -f "$0" )" )"
source $K_ZSH_DOTFILES/../dmitmel-dotfiles/zsh/zshrc
for script in functions; do
source "$K_ZSH_DOTFILES/$script.zsh"
done
if [[ -d "$K_ZSH_DOTFILES/custom" ]]; then
for script in $K_ZSH_DOTFILES/custom/*.zsh; do
source "$script"
done
fi