[zsh] Added loading of files next to zshrc.

This commit is contained in:
Keanu Timmermans 2021-06-23 12:11:32 +02:00
parent 97427c27ee
commit a1409e4441
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
2 changed files with 12 additions and 1 deletions

3
zsh/functions.zsh Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env zsh
#
silence() { $1 &>/dev/null }

View File

@ -1,3 +1,11 @@
SCRIPT_DIR="$( dirname "$( readlink -f "$0" )" )"
#!/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
for script in functions; do
source "$K_ZSH_DOTFILES/$script.zsh"
done