Skip to content

Instantly share code, notes, and snippets.

@totuworld
Last active April 8, 2016 05:42
Show Gist options
  • Save totuworld/db5d79ed76220f0b3ce37ab8e81bc1e5 to your computer and use it in GitHub Desktop.
Save totuworld/db5d79ed76220f0b3ce37ab8e81bc1e5 to your computer and use it in GitHub Desktop.
agnoster
## Main prompt
build_prompt() {
RETVAL=$?
prompt_status
prompt_virtualenv
prompt_context
prompt_dir
prompt_git
prompt_hg
prompt_newline
prompt_end
}
prompt_newline() {
if [[ -n $CURRENT_BG ]]; then
echo -n "%{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR
%{%k%F{blue}%}$SEGMENT_SEPARATOR"
else
echo -n "%{%k%}"
fi
echo -n "%{%f%}"
CURRENT_BG=''
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment