Skip to content

Instantly share code, notes, and snippets.

@pymen
Created December 15, 2013 10:18
Show Gist options
  • Select an option

  • Save pymen/7971183 to your computer and use it in GitHub Desktop.

Select an option

Save pymen/7971183 to your computer and use it in GitHub Desktop.
Mudasobwa yadr theme for python virtualenv
################ 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