„PS1.sh“ ändern

This commit is contained in:
DeltaLima 2023-08-01 10:33:27 +02:00
parent 1ad70a66c4
commit 09e0fd6f19
1 changed files with 5 additions and 1 deletions

6
PS1.sh
View File

@ -1,3 +1,7 @@
#!/bin/sh
export PS1="\[$(tput sgr0)\]\[\033[38;5;6m\][\e[1m\[\033[01;32m\]\u\[\033[38;5;39m\]@\[\033[01;32m\]$HOSTNAME\[$(tput sgr0)\]\e[1m\[\033[38;5;11m\]:\[$(tput sgr0)\]\e[1m\[\033[38;5;25m\]\w\[$(tput sgr0)\]\[\033[38;5;6m\]]\[$(tput sgr0)\]\[\033[38;5;11m\]🐧 \[$(tput sgr0)\]"export PS1="\[$(tput sgr0)\]\[\033[38;5;6m\][\e[1m\[\033[01;32m\]\u\[\033[38;5;39m\]@\[\033[01;32m\]$HOSTNAME\[$(tput sgr0)\]\e[1m\[\033[38;5;11m\]:\[\033[38;5;25m\]\w\[$(tput sgr0)\]\[\033[38;5;6m\]]\[\033[38;5;11m\]🐧 \[$(tput sgr0)\]"
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;39m\]@\[\033[01;32m\]$HOSTNAME\[$(tput sgr0)\]\e[1m\[\033[38;5;11m\]:\[$(tput sgr0)\]\e[1m\[\033[38;5;25m\]\w\[$(tput sgr0)\]\[\033[38;5;6m\]]\[$(tput sgr0)\]\[\033[38;5;11m\]🐧 \[$(tput sgr0)\]"export PS1="\[$(tput sgr0)\]\[\033[38;5;6m\][\e[1m\[\033[01;32m\]\u\[\033[38;5;39m\]@\[\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)\]"