mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
highlight path
This commit is contained in:
parent
79f9a97e31
commit
9c7283eef9
1 changed files with 2 additions and 2 deletions
|
@ -6,10 +6,10 @@
|
|||
[[ $- == *i* ]] || return
|
||||
if [[ "${UID}" == 0 ]]; then
|
||||
# red for root user, host green, print full working dir
|
||||
PS1='[\[\e[1;31m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \w]\$ '
|
||||
PS1='[\[\e[1;31m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \e[1m\w\e[m]\$ '
|
||||
else
|
||||
# blue for normal user,host green, print full working dir
|
||||
PS1='[\[\e[1;34m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \w]\$ '
|
||||
PS1='[\[\e[1;34m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \e[1m\w\e[m]]\$ '
|
||||
fi
|
||||
# color man pages
|
||||
export GROFF_NO_SGR=1
|
||||
|
|
Loading…
Reference in a new issue