summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Sadeghi <mehdi@mehdix.org>2021-05-26 16:45:04 +0200
committerMehdi Sadeghi <mehdi@mehdix.org>2021-05-26 20:07:14 +0200
commita5defa8aad18281ee35ac63cc7f867b98319b50f (patch)
treecefd93501e82552f8ddb3f7c42a90902efa3fde0
parent94e4017c133d4b59a5d0dc8ab67ed6f4b0ae08f6 (diff)
Fix? bash prompt colors.
-rw-r--r--.bashrc2
-rw-r--r--.config/sway/config2
-rw-r--r--.profile2
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