mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 22:55:10 +01:00
More clean prompt when in a chroot (like crouton)
This commit is contained in:
6
.bashrc
6
.bashrc
@@ -111,13 +111,13 @@ set_bash_prompt(){
|
|||||||
PROMPT_SYMBOL='$'
|
PROMPT_SYMBOL='$'
|
||||||
if [ $USER = 'root' ]; then
|
if [ $USER = 'root' ]; then
|
||||||
#PS1="$YELLOW\t $RED\u$BLACK@\h:\W# "
|
#PS1="$YELLOW\t $RED\u$BLACK@\h:\W# "
|
||||||
PS1="${debian_chroot:+($debian_chroot)}$(venvinfo)$YELLOW\t $RED\u$BLACK@\h:\W$(jobscount)# "
|
PS1="${debian_chroot:+$debian_chroot }$(venvinfo)$YELLOW\t $RED\u$BLACK@\h:\W$(jobscount)# "
|
||||||
elif [ -e ~/.dot_is_server ]; then
|
elif [ -e ~/.dot_is_server ]; then
|
||||||
#PS1="$YELLOW\t $GREEN\u$BLACK@\h:\W$ "
|
#PS1="$YELLOW\t $GREEN\u$BLACK@\h:\W$ "
|
||||||
PS1="${debian_chroot:+($debian_chroot)}$(venvinfo)$YELLOW\t $GREEN\u$BLACK@\h:\W$(jobscount)$ "
|
PS1="${debian_chroot:+$debian_chroot }$(venvinfo)$YELLOW\t $GREEN\u$BLACK@\h:\W$(jobscount)$ "
|
||||||
else
|
else
|
||||||
#PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$ "
|
#PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$ "
|
||||||
PS1="${debian_chroot:+($debian_chroot)}$(venvinfo)$YELLOW\t $BLUE\u$BLACK@\h:\W$(jobscount)$ "
|
PS1="${debian_chroot:+$debian_chroot }$(venvinfo)$YELLOW\t $BLUE\u$BLACK@\h:\W$(jobscount)$ "
|
||||||
fi
|
fi
|
||||||
#PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$(hg_ps1)$ "
|
#PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$(hg_ps1)$ "
|
||||||
#PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$(hg_ps1)$(__git_ps1)$ "
|
#PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$(hg_ps1)$(__git_ps1)$ "
|
||||||
|
|||||||
Reference in New Issue
Block a user