mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] Implement loading of custom scripts.
This commit is contained in:
parent
a1409e4441
commit
f771402007
2 changed files with 9 additions and 4 deletions
1
zsh/.gitignore
vendored
Normal file
1
zsh/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
custom
|
12
zsh/zshrc
12
zsh/zshrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue