Created
August 19, 2014 19:27
-
-
Save evangilo/b672b5c97f52f2375aa7 to your computer and use it in GitHub Desktop.
meu tema para o oh-my-zsh
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
| # 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