Skip to content

Instantly share code, notes, and snippets.

@evangilo
Created August 19, 2014 19:27
Show Gist options
  • Select an option

  • Save evangilo/b672b5c97f52f2375aa7 to your computer and use it in GitHub Desktop.

Select an option

Save evangilo/b672b5c97f52f2375aa7 to your computer and use it in GitHub Desktop.
meu tema para o oh-my-zsh
# adicionar a variável de ambiente no .zshrc
# export VIRTUAL_ENV_DISABLE_PROMPT=yes
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
}
local git_branch='$(git_prompt_info)%{$reset_color%}'
local user_host='%{$terminfo[bold]$fg[green]%}%n'
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$reset_color%}"
PROMPT="
╭─${user_host} ${current_dir} ${git_branch}
╰─%B$%b "
RPROMPT='${PR_GREEN}$(virtualenv_info)%{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment