7 lines
No EOL
347 B
Bash
7 lines
No EOL
347 B
Bash
#!/bin/sh
|
|
|
|
git_branch() {
|
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
|
|
}
|
|
|
|
export PS1="\[$(tput sgr0)\]\[\033[38;5;6m\][\e[1m\[\033[01;32m\]\u\[\033[38;5;6m\]@\[\033[01;32m\]$HOSTNAME\[$(tput sgr0)\]\e[1m\[\033[38;5;11m\]:\[\033[01;34m\]\w\[$(tput sgr0)\]\[\033[38;5;6m\]]\[\033[38;5;11m\]\$(git_branch)🐧 \[$(tput sgr0)\]" |