From d2636a0f947ebc8006934b491610c204311496cc Mon Sep 17 00:00:00 2001 From: Vahagn Khachatryan Date: Wed, 24 Jun 2020 07:25:25 -0400 Subject: [PATCH] Don't show my user name and command prompt. --- config/.bashrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/config/.bashrc b/config/.bashrc index c6b8084..23a7bf9 100755 --- a/config/.bashrc +++ b/config/.bashrc @@ -116,7 +116,8 @@ if [ -n "$PS1" ]; then # if [ $c_num -ge 256 ]; then c_reset="$(tput sgr0)" - c_user="$(tput setaf 112)" #Green + c_user="$(tput setaf 203)" #Some bright color + c_host="$(tput setaf 112)" #Green c_cwd="$(tput setaf 99)" c_time="$(tput setaf 33)" #Light blue c_branch="$(tput setaf 138)" @@ -124,7 +125,8 @@ if [ -n "$PS1" ]; then c_jobs="$(tput setaf 220)" #Yellow else c_reset="$(tput sgr0)" - c_user="$(tput setaf 2)" #Green + c_user="$(tput setaf 1)" # + c_host="$(tput setaf 2)" #Green c_cwd="$(tput setaf 7)" #White c_time="$(tput setaf 6)" #Cyan c_branch="$(tput setaf 6)" #Cyan @@ -144,7 +146,12 @@ if [ -n "$PS1" ]; then # local exit_code="$?" prompt_extra="" - PS1="\[$c_user\]\u@\h:" # username@host: + if [ "$USER" != "vkhachatrya5" -a "$USER" != "vahagn" ]; then + PS1="\[$c_user\]\u@" # username@ + else + PS1="" + fi + PS1+="\[$c_host\]\h:" # hostname PS1+="\[$c_time\]\t" # time PS1+=" \[$c_cwd\]\w" # working_dir #