From b4b0c3791da845b4b33879b4381c6073dfeb2009 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Tue, 26 Mar 2024 13:40:30 +0300 Subject: [PATCH] Changes Add red hostname color for root. Also I added gentoo user in system for easily enter chroot with gentoo and then created alias --- tcsh/.tcshrc | 4 ++++ 1 file changed, 4 insertions(+) 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"