fix escape sequences
This commit is contained in:
parent
1e3ab8586b
commit
6ed437fc92
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user