1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # powerline-shell.zshrc: "powerline-shell" integration.
4 [[ "$TERM" = "linux" ]] && return
6 if [[ -z "$POWERLINE_SHELL" ]]; then
8 "$HOME/powerline-shell.py"
9 "$HOME/.powerline-shell.py"
11 [[ -r "$p" ]] || continue
17 if [[ ! -r "$POWERLINE_SHELL" ]]; then
18 echo "Powerline shell extension not found/readable!"
22 function powerline_precmd() {
26 --mode ${POWERLINE_SHELL_MODE:-"compatible"} \
28 --cwd-mode ${POWERLINE_SHELL_CWD_MODE:-"fancy"} \
29 --cwd-max-depth ${POWERLINE_SHELL_CWD_DEPTH:-4} \
34 # Make sure "powerline_precmd" isn't installed already
35 for s in "${precmd_functions[@]}"; do
36 [[ "$s" = "powerline_precmd" ]] && return
39 precmd_functions+=(powerline_precmd)