Skip to content

Commit bfea55c

Browse files
author
Kazuaki NAKAMURA
committed
update zprofile
1 parent 9e5e2e8 commit bfea55c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.zprofile

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ for file in ~/.{exports,aliases,functions}; do
33
done
44

55
function powerline_precmd() {
6-
PS1="$(~/.powerline-shell/powerline-shell.py $? --shell zsh 2> /dev/null)"
6+
PS1="$(powerline-shell --shell zsh $?)"
77
}
88

99
function install_powerline_precmd() {
@@ -15,8 +15,8 @@ function install_powerline_precmd() {
1515
precmd_functions+=(powerline_precmd)
1616
}
1717

18-
if [ "$TERM" != "linux" ]; then
19-
install_powerline_precmd
18+
if [ "$TERM" != "linux" -a -x "$(command -v powerline-shell)" ]; then
19+
install_powerline_precmd
2020
fi
2121

2222
if [ -n "$LS_COLORS" ]; then

0 commit comments

Comments
 (0)