diff --git a/tcsh/.tcshrc b/tcsh/.tcshrc index b3c3dff..fb27cfb 100644 --- a/tcsh/.tcshrc +++ b/tcsh/.tcshrc @@ -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"