File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22[ " $1 " = activate ] && unset ps1_loaded && awk ' NR>2' $0 && exit 0
33[ " $1 " ] && unset ps1_loaded
4- [ " $ps1_loaded " ] && return
4+ [ " $ps1_loaded " ] && return 0
55: ${USER:= $USERNAME }
66: ${USER:= $LOGNAME }
77export TMPDIR=/tmp
@@ -18,7 +18,7 @@ cat - >$ps1_tmp <<'EOF'
1818# Powerline prompt with AWK (bash/zsh/ksh)
1919# echo "loading $ps1_tmp" >&2
2020[ "$1" ] && unset ps1_loaded
21- [ "$ps1_loaded" ] && return
21+ [ "$ps1_loaded" ] && return 0
2222ps1_loaded=1
2323
2424ps1_nfstyle="(/auto:exit_status (/lblack:elapse (/blue:userhost )/auto:git_branch )/lblack:cwd > | (/lblue/black/blue:info (/auto:addon (/auto:dfcheck (/auto:loadavg (/auto:freemem (/blue:time )"
676676fi
677677
678678[ "$1" = login ] && shift && eval "$(ps1_login "$@")"
679+ return 0
679680
680681####### end powerline-awk ########
681682EOF
You can’t perform that action at this time.
0 commit comments