This commit is contained in:
nub31
2025-09-26 18:48:08 +02:00
parent eb914af05a
commit d31c958332
3 changed files with 12 additions and 8 deletions

12
.bashrc
View File

@@ -10,7 +10,11 @@ if [[ "$PS1" && -f /usr/share/bash-completion/bash_completion ]]; then
source /usr/share/bash-completion/bash_completion
fi
# Init starship
if command -v starship > /dev/null; then
eval "$(starship init bash)"
fi
git_branch() {
branch=$(git branch --show-current 2>/dev/null)
if [ -n "$branch" ]; then
echo " 󰘬 $branch"
fi
}
PS1='\[\e[38;5;238m\]╭╴\[\e[0;2m\]󰣇\[\e[0m\] \[\e[38;5;171;1;2m\]\u\[\e[0m\] on \[\e[38;5;221;1m\]\h\[\e[0m\] at \[\e[38;5;159;1m\]\w\[\e[0m\]\[\e[38;5;156m\]$(git_branch)\n\[\e[38;5;238m\]╰─\[\e[0m\] '