1
0
forked from brl/citadel

fix escape sequences

This commit is contained in:
Bruce Leidl 2018-03-18 22:05:19 -04:00
parent 1e3ab8586b
commit 6ed437fc92

View File

@ -1,20 +1,21 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
fgc() {
printf "\e[38;5;${1}m"
printf "\[\e[38;5;${1}m\]"
}
bgc() {
resetc
printf "\e[48;5;${1}m"
printf "\[\e[48;5;${1}m\]"
}
resetc() {
printf "\e[0m"
printf "\[\e[0m\]"
}
export PS1="$(bgc 253)$(fgc 53)citadel$(bgc 253):\w \\$`resetc` "
umask 022
shopt -s checkwinsize
export LS_OPTIONS='--color=auto'
eval `dircolors`