Files
dotfiles/cowley.zsh

13 lines
315 B
Bash

# Copy this file to "$HOME/.oh-my-zsh/custom/" to be usable.
# Helper method for showing python virtual env info in the prompt.
venv_prompt_info() {
if [[ -z "$VIRTUAL_ENV" ]]; then
return
fi
echo -e "${ZSH_THEME_VENV_PROMPT_PREFIX}$(basename $VIRTUAL_ENV)${ZSH_THEME_VENV_PROMPT_SUFFIX}"
}