From 84bc31f9f01992526fac217b48dd4a7b80b2c489 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 13 Apr 2022 09:13:02 +0200 Subject: [PATCH] [bash] Fix color escaping in bash prompt. --- .bashrc.dotfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc.dotfiles b/.bashrc.dotfiles index 2b2357b..9aef5d6 100644 --- a/.bashrc.dotfiles +++ b/.bashrc.dotfiles @@ -26,7 +26,7 @@ alias dotfiles='git --git-dir="$HOME/.dotfiles.git/" --work-tree="$HOME/"' # Bash prompt if [[ "${TERM}" =~ 256 ]]; then # Colors from vim-airline bubblegum theme: 110 blue, 150 green - PS1="[\[\e[38;5;110m\e[1m\]\u@\h\[\e[0m\]:\[\e[38;5;150m\e[1m\]\w\e[0m\]]\$ " + PS1="[\[\e[38;5;110m\e[1m\]\u@\h\[\e[0m\]:\[\e[38;5;150m\e[1m\]\w\[\e[0m\]]\$ " else PS1="[\[\e[32m\e[1m\]\u@\h\[\e[0m\]:\[\e[34m\e[1m\]\w\[\e[0m\]]\$ " fi