1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

Show useful hg-info in prompt

This commit is contained in:
Michiel Scholten
2014-06-03 16:07:54 +02:00
parent ee23d5d320
commit 52e04c1ee1

View File

@@ -53,6 +53,11 @@ if [ -n "$force_color_prompt" ]; then
fi fi
fi fi
hg_ps1() {
#hg prompt "{ on {branch}}{ at {bookmark}}{status}" 2> /dev/null
hg prompt " \[\033[1;37m\]hg\[\033[0m\] {branch}{status}" 2> /dev/null
}
if [ "$color_prompt" = yes ]; then if [ "$color_prompt" = yes ]; then
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# Michiel's colour config # Michiel's colour config
@@ -60,7 +65,8 @@ if [ "$color_prompt" = yes ]; then
BLUE="\[\033[0;34m\]" BLUE="\[\033[0;34m\]"
YELLOW="\[\033[0;33m\]" YELLOW="\[\033[0;33m\]"
PROMPT_SYMBOL='$' PROMPT_SYMBOL='$'
PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$ " #PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$ "
PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$(hg_ps1)$ "
# /Michiel's colour config # /Michiel's colour config
else else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '