Skip to content

Commit

Permalink
[arch] make root bash prompt red, fixes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed May 31, 2019
1 parent bf266f4 commit 67e945b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion software/configs/bashrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# colors
export PS1="[\[\033[0m\]\[\033[38;5;214m\]\u\[\033[0m\]@\[\033[38;5;214m\]\h\[\033[0m\]] \[\033[38;5;6m\]\w\[\033[0m\]\[\033[38;5;15m\] \\$ \[\033[0m\]"
if [ $(id -u) -eq 0 ]; then
export PS1="[\[\033[0m\]\[\033[01;31m\]\u\[\033[0m\]@\[\033[01;31m\]\h\[\033[0m\]] \[\033[38;5;6m\]\w\[\033[0m\]\[\033[38;5;15m\] \\$ \[\033[0m\]"
else
export PS1="[\[\033[0m\]\[\033[38;5;214m\]\u\[\033[0m\]@\[\033[38;5;214m\]\h\[\033[0m\]] \[\033[38;5;6m\]\w\[\033[0m\]\[\033[38;5;15m\] \\$ \[\033[0m\]"
fi

export LS_COLORS='di=1;35;40:ln=1;35;40:so=1;31;40:pi=1;33;40:ex=1;32;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:'
alias ls='ls -Fh --color=always'
Expand Down

0 comments on commit 67e945b

Please sign in to comment.