aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-05-04 23:34:46 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-05-04 23:34:46 +0200
commitf3fd23972dba7b107cf05901a959c7531c10cf45 (patch)
tree10c54070e06b14917d34db34309107e67c961e3e
parent79be19ffebe372b43676f6d9f0068324103c19da (diff)
downloaddotfiles-f3fd23972dba7b107cf05901a959c7531c10cf45.tar.gz
dotfiles-f3fd23972dba7b107cf05901a959c7531c10cf45.zip
bash: PS1: Avoid an extra space on non-git
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index d26f3c1..eb97270 100644
--- a/.bashrc
+++ b/.bashrc
@@ -90,7 +90,7 @@ export PAGER=less
alias gti=git
# Setting up PS1.
-export PS1='$(__git_ps1 "\[\033[0;32m\]@%s\[\033[0m\]\]") \$ '
+export PS1='$(__git_ps1 "\[\033[0;32m\]@%s\[\033[0m\]\] ")\$ '
# Introduce `cclip` as a fast way to use `xclip` but selecting the clipboard.
alias cclip='xclip -selection clipboard'