From 0dd8b02a2827cab5c80bd56f69c2d7f1eae97c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Sat, 3 Oct 2026 00:26:32 +0200 Subject: [PATCH] shell: bash: git branch and fix delete key --- shell/.bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/shell/.bashrc b/shell/.bashrc index 49b9526..99f025c 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -10,6 +10,12 @@ PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND" PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ ' +if [ -e /usr/share/git/git-prompt.sh ]; then + source /usr/share/git/git-prompt.sh + GIT_PS1_SHOWDIRTYSTATE=1 + PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m$(__git_ps1) \$ ' +fi + HISTTIMEFORMAT='%F %R ' function before_command() { echo -ne '\e[2 q'; } @@ -18,6 +24,10 @@ trap before_command DEBUG # Aliases. for f in ~/.config/shellconfig/*.sh; do source "$f"; done +if [[ "$TERM" = st-256color ]]; then + tput smkx +fi + if [[ -f /usr/share/bash-completion/bash_completion ]]; then . /usr/share/bash-completion/bash_completion fi