Created
July 30, 2017 17:03
-
-
Save thierrymarianne/c08aa429b11ac5f173db1cd737d4925e to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/zsh | |
#### Usage | |
# cp smil.zsh-theme ~/.oh-my-zsh/themes | |
# | |
## ~/..zshrc | |
# ZSH_THEME='smil' # Mettre à jour le thème oh-my-zsh sélectionné | |
local last_command_failed="o_O" | |
local last_command_succeeded="^_^" | |
local mood_color="$bold_color%(?:%{$FG[070]%}:%{$FG[214]%})" | |
local ret_status="${mood_color}%(?:%{$last_command_succeeded%}:%{$last_command_failed%})" | |
local username="$USER" | |
local at="@$reset_color" | |
local host="$bold_color%(?:$FG[071]:$FG[202])%M" | |
local identity="${username}${at}${host}:" | |
local current_directory="%{%c$reset_color%}" | |
PROMPT='${ret_status} ${identity}${current_directory}$(git_prompt_info)'$'\n' | |
local git_color="$bold_color%(?:$FG[022]:$FG[160])" | |
local git_branch_color="$git_color" | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$git_color%}[$reset_color%{$git_branch_color%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$git_color%}]%{$fg[yellow]%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$git_color%}]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment