ssh-add ${af}
done
- if is434 && zstyle -T ':ganneff:config' killagent true; then
+ if is435 && zstyle -T ':ganneff:config' killagent true; then
add-zsh-hook zshexit kill_agent
fi
}
export SHELL=$(which zsh)
# Show some git info on cd
-if is434 ; then
+if is435 ; then
add-zsh-hook chpwd _jj_chpwd
else
function chpwd() {
if zstyle -t ':ganneff:config' dirstackhandling dirpersist dirstack; then
DIRSTACKFILE=${ZDOTDIR}/var/.zdirstore
dirpersistrestore
- if is434; then
+ if is435; then
add-zsh-hook zshexit dirpersiststore
else
echo "Sorry, zsh version too old"
)
PR_FLEXLINE=""
- add-zsh-hook precmd prompt_ganneff_precmd
+ is435 && add-zsh-hook precmd prompt_ganneff_precmd
# Call the winch function once to ensure the length gets calculated
# correctly
prompt_ganneff_winch
local pr_battery
zstyle -s ':prompt:ganneff' battery pr_battery || pr_battery="none"
if [[ $pr_battery != "none" ]]; then
- add-zsh-hook precmd prompt_ganneff_battery
+ is435 && add-zsh-hook precmd prompt_ganneff_battery
prompt_ganneff_battery
fi
_prompt_ganneff_ignore+=(${(e)${_prompt_ganneff_ignore[$i]}})
fi
done
- add-zsh-hook preexec prompt_ganneff_preexec
+ is435 && add-zsh-hook preexec prompt_ganneff_preexec
fi
}