From a5defa8aad18281ee35ac63cc7f867b98319b50f Mon Sep 17 00:00:00 2001 From: Mehdi Sadeghi Date: Wed, 26 May 2021 16:45:04 +0200 Subject: Fix? bash prompt colors. --- .bashrc | 2 +- .config/sway/config | 2 +- .profile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index f1a899e..a148f44 100644 --- a/.bashrc +++ b/.bashrc @@ -1,6 +1,6 @@ [ -n "$ENV" ] && . "$ENV" || [ -e .env ] && . .env -PS1="\e[1;33m\u@\h:\W \e[0m" +export PS1="\[\033[1;33m\]\u@\h:\W\$ \[\033[0m\]" [ -f ~/.fzf.bash ] && . ~/.fzf.bash [ -f ~/.config/broot/launcher/bash/br ] && . ~/.config/broot/launcher/bash/br diff --git a/.config/sway/config b/.config/sway/config index b9bc64c..fa47ecc 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -4,7 +4,7 @@ set $down j set $up k set $right l set $mod Mod4 -set $term alacritty +set $term alacritty -e bash --login # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. diff --git a/.profile b/.profile index 75ead8a..9b359d9 100644 --- a/.profile +++ b/.profile @@ -4,7 +4,7 @@ export LC_TIME=de_DE.UTF-8 export EDITOR=vim export TERM=xterm export HISTSIZE=65535 -export HISTCONTROL=erasedups +export HISTCONTROL=ignoreboth export PROMPT_COMMAND="history -a;history -n" export PATH=$HOME/.local/bin:$PATH -- cgit v1.2.3