Skip to content

Commit

Permalink
[config] change PS1 colors to prevent blinking in certain terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed Aug 17, 2020
1 parent 6dd7821 commit 51baf2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions software/configs/bashrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# colors
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\]"
export PS1="[\[\033[0m\]\[\033[01;31m\]\u\[\033[0m\]@\[\033[01;31m\]\h\[\033[0m\]] \[\033[36m\]\w\[\033[0m\]\[\033[37m\] \\$ \[\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\]"
export PS1="[\[\033[0m\]\[\033[33m\]\u\[\033[0m\]@\[\033[33m\]\h\[\033[0m\]] \[\033[36m\]\w\[\033[0m\]\[\033[37m\] \\$ \[\033[0m\]"
fi

for f in /opt/axiom-firmware/software/scripts/*.func; do source $f; done
Expand Down

0 comments on commit 51baf2a

Please sign in to comment.