Last active
April 8, 2016 05:42
-
-
Save totuworld/db5d79ed76220f0b3ce37ab8e81bc1e5 to your computer and use it in GitHub Desktop.
agnoster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Main prompt | |
build_prompt() { | |
RETVAL=$? | |
prompt_status | |
prompt_virtualenv | |
prompt_context | |
prompt_dir | |
prompt_git | |
prompt_hg | |
prompt_newline | |
prompt_end | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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