Add red hostname color for root. Also I added gentoo user in system for
easily enter chroot with gentoo and then created alias
master
Nakidai 2024-03-26 13:40:30 +03:00
parent a3e5bb1fd2
commit b4b0c3791d
Signed by: nakidai
GPG Key ID: 18AD605FDA13FE5A
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,8 @@ if ($?prompt) then
set __prompt_success_color="${__reset_color}%{\033[38;2;140;170;238m%}"
set __prompt_failure_color="${__reset_color}%{\033[38;2;231;130;132m%}"
if ($USER == "root") set __prompt_key='${__reset_color}%{\033[38;2;231;130;132m%}'
alias precmd 'set __last_code=$?; source ~/.precmd.tcsh'
endif
@ -33,3 +35,5 @@ alias rbot "doas reboot"
alias dv "doas vi"
alias ls "ls --color"
alias l "ls -lah"
alias gentoo "doas su gentoo"