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 | c2f239ff635d09d28a9536b821a877579729d2d0 (patch) | |
| tree | 2e15f07875161af0094b60760dd4c39db079b23b /.bash-powerline.sh | |
| parent | 998f8acc8619400ee259e2048e30cf2e5178f40f (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 |
