1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # powerline-shell.zshrc: "powerline-shell" integration.
4 axzsh_is_modern_terminal || return 91
6 if [[ -z "$POWERLINE_SHELL" ]]; then
8 "$HOME/powerline-shell.py"
9 "$HOME/.powerline-shell.py"
11 [[ -r "$p" ]] || continue
18 [[ -r "$POWERLINE_SHELL" ]] || return 1
20 function powerline_precmd() {
24 --mode ${POWERLINE_SHELL_MODE:-"compatible"} \
26 --cwd-mode ${POWERLINE_SHELL_CWD_MODE:-"fancy"} \
27 --cwd-max-depth ${POWERLINE_SHELL_CWD_DEPTH:-4} \
32 # Make sure "powerline_precmd" isn't installed already
33 for s in "${precmd_functions[@]}"; do
34 [[ "$s" = "powerline_precmd" ]] && return
37 precmd_functions+=(powerline_precmd)