PS1.sh aktualisiert
This commit is contained in:
parent
738c9a88cd
commit
71ff94a532
1 changed files with 12 additions and 1 deletions
11
PS1.sh
11
PS1.sh
|
@ -5,3 +5,14 @@ git_branch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export PS1="\[$(tput sgr0)\]\[\033[38;5;6m\][\e[1m\[\033[01;32m\]\u\[\033[38;5;12m\]@\[\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)\]"
|
export PS1="\[$(tput sgr0)\]\[\033[38;5;6m\][\e[1m\[\033[01;32m\]\u\[\033[38;5;12m\]@\[\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)\]"
|
||||||
|
|
||||||
|
|
||||||
|
git_branch() {
|
||||||
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$color_prompt" = yes ]; then
|
||||||
|
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:[\[\033[01;34m\]\w\[\033[00m\]]$(git_branch)🐧'
|
||||||
|
else
|
||||||
|
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue