diff options
-rw-r--r-- | zshrc | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -108,6 +108,20 @@ vcs_info_wrapper() { echo "${vcs_info_msg_0_}" } +CHPWD_PROFILE='default' +function chpwd_profiles() { + local -x profile + + zstyle -s ":chpwd:profiles:${PWD}" profile profile || profile='default' + if (( ${+functions[chpwd_profile_$profile]} )) ; then + chpwd_profile_${profile} + fi + + CHPWD_PROFILE="${profile}" + return 0 +} +chpwd_functions=( ${chpwd_functions} chpwd_profiles ) + # update title function precmd { title "%n@%m %~" } |