Don't show my user name and command prompt.
This commit is contained in:
@@ -116,7 +116,8 @@ if [ -n "$PS1" ]; then
|
|||||||
#
|
#
|
||||||
if [ $c_num -ge 256 ]; then
|
if [ $c_num -ge 256 ]; then
|
||||||
c_reset="$(tput sgr0)"
|
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_cwd="$(tput setaf 99)"
|
||||||
c_time="$(tput setaf 33)" #Light blue
|
c_time="$(tput setaf 33)" #Light blue
|
||||||
c_branch="$(tput setaf 138)"
|
c_branch="$(tput setaf 138)"
|
||||||
@@ -124,7 +125,8 @@ if [ -n "$PS1" ]; then
|
|||||||
c_jobs="$(tput setaf 220)" #Yellow
|
c_jobs="$(tput setaf 220)" #Yellow
|
||||||
else
|
else
|
||||||
c_reset="$(tput sgr0)"
|
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_cwd="$(tput setaf 7)" #White
|
||||||
c_time="$(tput setaf 6)" #Cyan
|
c_time="$(tput setaf 6)" #Cyan
|
||||||
c_branch="$(tput setaf 6)" #Cyan
|
c_branch="$(tput setaf 6)" #Cyan
|
||||||
@@ -144,7 +146,12 @@ if [ -n "$PS1" ]; then
|
|||||||
#
|
#
|
||||||
local exit_code="$?"
|
local exit_code="$?"
|
||||||
prompt_extra=""
|
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_time\]\t" # time
|
||||||
PS1+=" \[$c_cwd\]\w" # working_dir
|
PS1+=" \[$c_cwd\]\w" # working_dir
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user