dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 61f6b9c37835c950899c6fe2a1660c7f52cecab0
parent 232abbb2d605f5ba568f49ed811c7618b5bbfe50
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 21 Jul 2017 22:13:05 +0100

enabled chpwd_auto_cd function

Diffstat:
Mzsh/.zsh/prompt.zsh | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/zsh/.zsh/prompt.zsh b/zsh/.zsh/prompt.zsh @@ -17,6 +17,16 @@ PROMPT_STYLE="classic" setopt PROMPT_SUBST autoload -Uz colors && colors +#█▓▒░ autoload zsh functions +fpath=(~/.zsh/functions $fpath) +autoload -U ~/.zsh/functions/*(:t) + +#█▓▒░ enable auto-execution of functions +typeset -ga chpwd_functions + +#█▓▒░ prepend functions +chpwd_functions+=('chpwd_auto_cd') + #█▓▒░ colors for permissions if [[ "$EUID" -ne "0" ]] then # if user is not root