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.
|
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||||
|
|
||||||
fgc() {
|
fgc() {
|
||||||
printf "\e[38;5;${1}m"
|
printf "\[\e[38;5;${1}m\]"
|
||||||
}
|
}
|
||||||
|
|
||||||
bgc() {
|
bgc() {
|
||||||
resetc
|
resetc
|
||||||
printf "\e[48;5;${1}m"
|
printf "\[\e[48;5;${1}m\]"
|
||||||
}
|
}
|
||||||
|
|
||||||
resetc() {
|
resetc() {
|
||||||
printf "\e[0m"
|
printf "\[\e[0m\]"
|
||||||
}
|
}
|
||||||
|
|
||||||
export PS1="$(bgc 253)$(fgc 53)citadel$(bgc 253):\w \\$`resetc` "
|
export PS1="$(bgc 253)$(fgc 53)citadel$(bgc 253):\w \\$`resetc` "
|
||||||
umask 022
|
umask 022
|
||||||
|
shopt -s checkwinsize
|
||||||
|
|
||||||
export LS_OPTIONS='--color=auto'
|
export LS_OPTIONS='--color=auto'
|
||||||
eval `dircolors`
|
eval `dircolors`
|
||||||
|
Loading…
Reference in New Issue
Block a user