change prompt

This commit is contained in:
Evgenii Alekseev 2016-06-29 14:23:11 +03:00
parent a989aaeb54
commit ccc533cae3
3 changed files with 11 additions and 9 deletions

View File

@ -6,15 +6,16 @@
# General # General
#AUTOSAVEBACKUPFILE=0 #AUTOSAVEBACKUPFILE=0
#DEVELSRCDIR=""
#DEVEL=0 #DEVEL=0
#VISUAL="$VISUAL" #DEVELSRCDIR=""
#EDITOR="$EDITOR"
#FORCEENGLISH=0
#FORCE=0 #FORCE=0
#TMPDIR="/tmp"
#NO_TESTDB=0 #NO_TESTDB=0
# Environment variables
#EDITOR="$EDITOR"
#TMPDIR="/tmp"
#VISUAL="$VISUAL"
# SUDO # SUDO
SUDONOVERIF=1 # Avoid multiple sudo checks when timestamp_timeout=0 SUDONOVERIF=1 # Avoid multiple sudo checks when timestamp_timeout=0
#SUDOREDIRECT=1 # Define to 0 in case you use a fingerprint device #SUDOREDIRECT=1 # Define to 0 in case you use a fingerprint device
@ -30,6 +31,7 @@ SUDONOVERIF=1 # Avoid multiple sudo checks when timestamp_timeout=0
#AURCOMMENT=5 #AURCOMMENT=5
#AURDEVELONLY=0 #AURDEVELONLY=0
#AURSEARCH=1 #AURSEARCH=1
#AURSHOWDIFF=0
#AURUPGRADE=0 #AURUPGRADE=0
#AURVOTE=1 #AURVOTE=1
#AURUSEGIT=0 #AURUSEGIT=0

View File

@ -4,7 +4,7 @@ if [[ $EUID == 0 ]]; then
PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\ PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\
%{$fg_bold[red]%}%n%{$reset_color%}\ %{$fg_bold[red]%}%n%{$reset_color%}\
%{$fg_bold[white]%}@%{$reset_color%}\ %{$fg_bold[white]%}@%{$reset_color%}\
%{$fg_no_bold[red]%}%m %{$reset_color%}\ %{$fg_no_bold[red]%}%M %{$reset_color%}\
%{$fg_bold[yellow]%}%1/%{$reset_color%}\ %{$fg_bold[yellow]%}%1/%{$reset_color%}\
%{$fg_bold[white]%}]# %{$reset_color%}" %{$fg_bold[white]%}]# %{$reset_color%}"
else else
@ -12,7 +12,7 @@ else
PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\ PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\
%{$fg_bold[green]%}%n%{$reset_color%}\ %{$fg_bold[green]%}%n%{$reset_color%}\
%{$fg_bold[white]%}@%{$reset_color%}\ %{$fg_bold[white]%}@%{$reset_color%}\
%{$fg_no_bold[green]%}%m %{$reset_color%}\ %{$fg_no_bold[green]%}%M %{$reset_color%}\
%{$fg_bold[yellow]%}%1/%{$reset_color%}\ %{$fg_bold[yellow]%}%1/%{$reset_color%}\
%{$fg_bold[white]%}]$ %{$reset_color%}" %{$fg_bold[white]%}]$ %{$reset_color%}"
fi fi

View File

@ -4,7 +4,7 @@ if [[ $EUID == 0 ]]; then
PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\ PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\
%{$fg_bold[red]%}%n%{$reset_color%}\ %{$fg_bold[red]%}%n%{$reset_color%}\
%{$fg_bold[white]%}@%{$reset_color%}\ %{$fg_bold[white]%}@%{$reset_color%}\
%{$fg_no_bold[blue]%}%m %{$reset_color%}\ %{$fg_no_bold[blue]%}%M %{$reset_color%}\
%{$fg_bold[yellow]%}%1/%{$reset_color%}\ %{$fg_bold[yellow]%}%1/%{$reset_color%}\
%{$fg_bold[white]%}]# %{$reset_color%}" %{$fg_bold[white]%}]# %{$reset_color%}"
else else
@ -12,7 +12,7 @@ else
PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\ PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\
%{$fg_bold[green]%}%n%{$reset_color%}\ %{$fg_bold[green]%}%n%{$reset_color%}\
%{$fg_bold[white]%}@%{$reset_color%}\ %{$fg_bold[white]%}@%{$reset_color%}\
%{$fg_no_bold[blue]%}%m %{$reset_color%}\ %{$fg_no_bold[blue]%}%M %{$reset_color%}\
%{$fg_bold[yellow]%}%1/%{$reset_color%}\ %{$fg_bold[yellow]%}%1/%{$reset_color%}\
%{$fg_bold[white]%}]$ %{$reset_color%}" %{$fg_bold[white]%}]$ %{$reset_color%}"
fi fi