Skip to content

Instantly share code, notes, and snippets.

@remiflament
Last active December 18, 2017 09:07
Show Gist options
  • Save remiflament/911a56f0fcc1fb2101148cf3b339efad to your computer and use it in GitHub Desktop.
Save remiflament/911a56f0fcc1fb2101148cf3b339efad to your computer and use it in GitHub Desktop.
Theme ZSH pour afficher le hostname sur le prompt
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="remi"
local ret_status="%(?:%{$fg_bold[white]%}%M %{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment