Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Setting folder colour to purple, to distinguish it from the branch.

Bringing example at the top of the page in line which the results.
  • Loading branch information...
commit 09849e2a23d80471774f4bf5950c194b2b93cb6c 1 parent 3e88f6a
@manix84 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 .bash_prompt
View
8 .bash_prompt
@@ -18,7 +18,7 @@
# root @ server in ~/projects/dotfiles/ on master [↑]
# $
#
-# {BOLD}{RED}root{WHITE} @ {ORANGE}server{WHITE} in {PURPLE}~/projects/dotfiles {WHITE} on {RED|YELLOW|GREEN} master [↑]
+# {BOLD}{RED}root{WHITE} at {ORANGE}server{WHITE} in {PURPLE}~/projects/dotfiles {WHITE} on {RED|YELLOW|GREEN} master [↑]
# {RESET}$
#
# EXAMPLE 2:
@@ -26,7 +26,7 @@
# root @ server in ~/projects
# $
#
-# {BOLD}{RED}root{WHITE} @ {ORANGE}server{WHITE} in {PURPLE}~/projects
+# {BOLD}{RED}root{WHITE} at {ORANGE}server{WHITE} in {PURPLE}~/projects
# {RESET}$
#
# AUTHOR:
@@ -125,7 +125,7 @@ function get_git_branch_name() {
fi
# Set the final branch string.
- echo "${WHITE} on ${local_state}${branch_name}${remote_state}${RESET} "
+ echo "${WHITE} on ${local_state}${branch_name}${remote_state} "
}
function get_branch_name() {
if is_git_repository ; then
@@ -133,5 +133,5 @@ function get_branch_name() {
fi
echo ""
}
-export PS1="\[${BOLD}${MAGENTA}\]\u \[$WHITE\]at \[$ORANGE\]\h \[$WHITE\]in \[$GREEN\]\w\[$WHITE\]\$(get_branch_name)\n\$ \[$RESET\]"
+export PS1="\[${BOLD}${MAGENTA}\]\u \[$WHITE\]at \[$ORANGE\]\h \[$WHITE\]in \[$PURPLE\]\w\$(get_branch_name)\n\[$RESET\]\$ "
export PS2="\[$ORANGE\]→ \[$RESET\]"

1 comment on commit 09849e2

@manix84
Owner

I did not realise that when I committed changes to my remote branch they arrived here too. Very cool :D
The prompt looks like this now:
Coloured-Branch-Name Example

Please sign in to comment.
Something went wrong with that request. Please try again.