citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit bf3b6ac96bd71b696f9367912d2b5316a7be42b3
parent 3677cf8f6da0228f25c6dbfee1ede7fdd0508ee7
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 29 Dec 2020 11:40:40 -0800

bash: color prompt

Diffstat:
Mdotfiles/.bashrc | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc @@ -6,13 +6,8 @@ set -o vi # If not running interactively, don't do anything [ -z "$PS1" ] && return - -if [ "$USER" = "jb55" ]; then - export PS1='$(printf "%3.*s" $? $?) $ ' -else - export PS1="\u@\h$ " -fi - +export PS1='$(printf "\n\033[30;1m%3.*s\033[0m$ \033[33m" $? $?)' +export PS0='\033[0m' # don't put duplicate lines in the history. See bash(1) for more options export HISTCONTROL=ignoredups