Changes
Add red hostname color for root. Also I added gentoo user in system for easily enter chroot with gentoo and then created aliasmaster
parent
a3e5bb1fd2
commit
b4b0c3791d
|
@ -18,6 +18,8 @@ if ($?prompt) then
|
||||||
set __prompt_success_color="${__reset_color}%{\033[38;2;140;170;238m%}"
|
set __prompt_success_color="${__reset_color}%{\033[38;2;140;170;238m%}"
|
||||||
set __prompt_failure_color="${__reset_color}%{\033[38;2;231;130;132m%}"
|
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'
|
alias precmd 'set __last_code=$?; source ~/.precmd.tcsh'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -33,3 +35,5 @@ alias rbot "doas reboot"
|
||||||
alias dv "doas vi"
|
alias dv "doas vi"
|
||||||
alias ls "ls --color"
|
alias ls "ls --color"
|
||||||
alias l "ls -lah"
|
alias l "ls -lah"
|
||||||
|
|
||||||
|
alias gentoo "doas su gentoo"
|
||||||
|
|
Loading…
Reference in New Issue