Created
December 15, 2013 10:18
-
-
Save pymen/7971183 to your computer and use it in GitHub Desktop.
Mudasobwa yadr theme for python virtualenv
This file contains hidden or 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
| ################ mudasobwa prompt ################## | |
| for config_file ($HOME/.yadr/zsh/*.zsh) source $config_file | |
| autoload -U colors && colors | |
| autoload -Uz promptinit | |
| promptinit | |
| prompt mudasobwa | |
| ################################################ | |
| #EDIT MAIN THEME ############################### | |
| function virtualenv_info { | |
| if [ ! -n "$VIRTUAL_ENV" ]; then | |
| echo -n "-no-" | |
| else | |
| echo -n "`basename $VIRTUAL_ENV` ⚓" | |
| fi | |
| } | |
| ### current ruby environment | |
| ### added by mudasobwa | |
| prompt_pyvenv() { | |
| venv=$(virtualenv_info) | |
| if [ ! -n "$VIRTUAL_ENV" ]; then ; | |
| else | |
| prompt_rsegment green black "$venv" | |
| fi | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment