diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-10-14 15:46:55 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-10-14 15:46:55 +0200 |
| commit | 57857f9382ccc0f2ce9bdff05bbbcce63da9f423 (patch) | |
| tree | 93745474d61db66005b5689e508d13868f0e1f39 /.bash-powerline.sh | |
| parent | afbf517309c9809516645e3b35cdc2be7852b884 (diff) | |
update
Diffstat (limited to '.bash-powerline.sh')
| -rw-r--r-- | .bash-powerline.sh | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/.bash-powerline.sh b/.bash-powerline.sh index d939f57..ccb7a5d 100644 --- a/.bash-powerline.sh +++ b/.bash-powerline.sh @@ -27,14 +27,6 @@ __powerline() { fi [ "$PS_SYMBOL" ] || PS_SYMBOL=';' - #if [[ -z "$PS_SYMBOL" ]]; then - # case "$(uname)" in - # # Darwin) PS_SYMBOL='';; - # Darwin) PS_SYMBOL='$';; - # Linux) PS_SYMBOL='$';; - # *) PS_SYMBOL='%';; - # esac - #fi __git_info() { [[ $POWERLINE_GIT = 0 ]] && return # disabled @@ -94,10 +86,7 @@ __powerline() { local git="$COLOR_GIT$(__git_info)$RESET" fi - PS1=": $cwd$git$symbol" - if [ "$SSH_TTY" ]; then - PS1=": $host:$PS1" - fi + [ "$SSH_TTY" ] && PS1=": $host:$cwd$git$symbol" || PS1=": $cwd$git$symbol" } PROMPT_DIRTRIM=2 |
