various updates
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
[ -f ~/.profile ] && . ~/.profile
|
||||
|
||||
[ -f ~/.profile.extra ] && . ~/.profile.extra
|
||||
[ -f ~/.profile.local ] && . ~/.profile.local
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias diff='diff --color=auto'
|
||||
@@ -21,8 +21,10 @@ HISTFILESIZE=1000000
|
||||
HISTTIMEFORMAT="%d %b %Y %T %z "
|
||||
|
||||
if [ "$EUID" -eq 0 ]; then
|
||||
if [ -f /etc/armbian-release ]; then
|
||||
if [ $(grep -m 1 -oi orange /etc/armbian-image-release 2>/dev/null) ]; then
|
||||
PS1='\[\033[38;5;208;1m\]\u@\H\[\033[00m\]:\w\[\033[00m\]\$ '
|
||||
elif [ $(grep -m 1 -oi rockpi /etc/armbian-image-release 2>/dev/null) ]; then
|
||||
PS1='\[\033[32;5;208;1m\]\u@\H\[\033[00m\]:\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='\[\033[1m\]\u@\H\[\033[00m\]:\w\[\033[00m\]\$ '
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user