diff --git a/zsh/functions.zsh b/zsh/functions.zsh new file mode 100644 index 0000000..c47c5e6 --- /dev/null +++ b/zsh/functions.zsh @@ -0,0 +1,3 @@ +#!/usr/bin/env zsh +# +silence() { $1 &>/dev/null } diff --git a/zsh/zshrc b/zsh/zshrc index 5c19c7d..0c049bb 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -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