Skip to content

Commit

Permalink
Fix custom PS1 for .bashrc module defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Oct 12, 2023
1 parent f980e3b commit 3cdaaf2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xterm/rc/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ if [ -x /usr/bin/dircolors ]; then
fi

# custom PS1
PS1='\[\033[1;35m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h:\[\033[1;37m\]\w\[\033[1;37m\]\$\[\033[0m\] '
if [ "$(id -u)" -eq 0 ]; then
PS1='\[\033[1m\033[38;5;196m\]\u\[\033[1;39m\]@\[\033[38;5;82m\]\h:\[\033[38;5;213m\]\w\[\033[1;37m\]\$\[\033[0m\] '
else
PS1='\[\033[1m\033[38;5;208m\]\u\[\033[1;39m\]@\[\033[38;5;82m\]\h:\[\033[38;5;213m\]\w\[\033[1;37m\]\$\[\033[0m\] '
fi

# user default run time config
if [ -f ~/.bashrc ]; then
Expand Down

0 comments on commit 3cdaaf2

Please sign in to comment.