wok-next diff bash/stuff/etc/bashrc @ rev 21075
xorg-cf-files: typo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 21 01:46:05 2018 +0200 (2018-12-21) |
parents | 67aa716192dd |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bash/stuff/etc/bashrc Fri Dec 21 01:46:05 2018 +0200 1.3 @@ -0,0 +1,18 @@ 1.4 +# /etc/bashrc: Bash system wide config file. 1.5 +# 1.6 + 1.7 +if [ "`id -u`" -eq 0 ]; then 1.8 + # Simple prompt 1.9 + #PS1='\u@\h:\w # ' 1.10 + 1.11 + # Colored prompt 1.12 + PS1="\[\e[31;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] # " 1.13 +else 1.14 + # Simple prompt 1.15 + #PS1='\u@\h:\w $ ' 1.16 + 1.17 + # Colored prompt 1.18 + PS1="\[\e[34;1m\]\u@\[\e[32;1m\]\h:\w\[\e[0m\] $ " 1.19 +fi 1.20 + 1.21 +export PS1