Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: faf1d43975
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (14 sloc) 0.408 kb
#!/bin/bash
source_custom colors
set -a
function maybe_git_branch() {
branch_name="$(git branch-name)"
if [[ "$?" -eq 0 ]]; then
echo -ne " ${NORMAL}[${YELLOW}git${NORMAL}:${AQUA}${branch_name}${NORMAL}]"
fi
}
PS1="${CGREEN}\u${CAQUA}@${CRED}\h${CAQUA}:${CBLUE}\w\$(maybe_git_branch)"
PS1="${PS1}\n${CGREEN}\$${CNORMAL} "
PROMPT_COMMAND="$CUSTOM_DIR/prompt-command"
bash_custom_prompt="true"
set +a
Jump to Line
Something went wrong with that request. Please try again.