Move smiley to end of line

This commit is contained in:
fanyx 2021-05-19 10:27:37 +02:00
parent c8cf1ac5a9
commit 23bd9474a0
1 changed files with 2 additions and 4 deletions

6
.ps1
View File

@ -1,7 +1,5 @@
#!/bin/bash #!/bin/bash
[[ -f /etc/bash_completion.d/git-prompt ]] && . /etc/bash_completion.d/git-prompt
NC='\[\033[00m\]' NC='\[\033[00m\]'
GREEN='\[\033[01;32m\]' GREEN='\[\033[01;32m\]'
YELLOW='\[\033[01;33m\]' YELLOW='\[\033[01;33m\]'
@ -14,6 +12,6 @@ SELECT="if [ \$? = 0 ]; then echo \"${SMILEY}\"; else echo \"${FROWNY}\"; fi"
GIT_BRANCH="$(__git_ps1 ' [%s]')" GIT_BRANCH="$(__git_ps1 ' [%s]')"
# actually export PS1
PS1="${GREEN}\u@\h${NC}:${BLUE}\w${NC} \`${SELECT}\`${YELLOW}\$(__git_ps1 ' [%s]')${NC} \$ " PS1="${GREEN}\u@\h${NC}:${BLUE}\w${YELLOW}\$(__git_ps1 ' [%s]')${NC} \`${SELECT}\` \$ "