From 70e3fe7faad4ae082486fd2ad5b590414c899b98 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 9 Oct 2019 19:02:06 +0100 Subject: [PATCH] Include custom zsh functions --- rcrc | 2 +- tag-zsh/zshrc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rcrc b/rcrc index a7b8164..729cfd5 100644 --- a/rcrc +++ b/rcrc @@ -1,4 +1,4 @@ DOTFILES_DIRS="$HOME/dotfiles-local $HOME/dotfiles" EXCLUDES="install.sh README.md" -SYMLINK_DIRS="composer zsh_profile.d" +SYMLINK_DIRS="composer functions zsh_profile.d" TAGS="git npm php tmux vim zsh" diff --git a/tag-zsh/zshrc b/tag-zsh/zshrc index b1c6c1b..c2be548 100644 --- a/tag-zsh/zshrc +++ b/tag-zsh/zshrc @@ -93,6 +93,10 @@ alias zshconfig="vim ~/.zshrc" # https://superuser.com/questions/613685/how-stop-zsh-from-eating-space-before-pipe-symbol ZLE_REMOVE_SUFFIX_CHARS="" +for function in $HOME/.zsh/functions/*; do + source $function +done + for zsh_source in $HOME/.zsh_profile.d/*.zsh; do source $zsh_source done