Add zsh related dotfiles and update vimrc
This commit is contained in:
12
cowley.zsh
Normal file
12
cowley.zsh
Normal file
@@ -0,0 +1,12 @@
|
||||
# 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}"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user