Skip to content

Instantly share code, notes, and snippets.

@dotcypress
Last active August 29, 2015 13:57
Show Gist options
  • Save dotcypress/9910282 to your computer and use it in GitHub Desktop.
Save dotcypress/9910282 to your computer and use it in GitHub Desktop.
Hipster zsh theme
# ------------------------------------------------------------------------------
# FILE: hipster.zsh-theme
# DESCRIPTION: oh-my-zsh theme file.
# AUTHOR: Vitaly Domnikov (dotcypress@gmail.com)
# BASED ON: Sorin theme by Sorin Ionescu (sorin.ionescu@gmail.com)
# VERSION: 1.0.2
# ------------------------------------------------------------------------------
function get_host {
echo `hostname`''
}
if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
local return_status="%{$fg[red]%}%(?..)"
PROMPT='%{$fg[black]%}%{$bg[cyan]%} %c %{$reset_color%}$(git_prompt_info)$(git_prompt_status)%(!.%{$fg[red]%}#.${return_status})%{$fg[white]%}%{$bg[black]%}⮀%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[cyan]%}%{$bg[black]%}⮀ % %{$fg[blue]%}git:%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$fg[black]%}%{$bg[white]%}⮀"
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
RPROMPT='%{$fg[black]%}%{$bg[yellow]%}⮀ %~ %{$bg[blue]%}%{$fg[yellow]%}⮀ %{$fg[black]%}$(get_host) %{$reset_color%}%{$fg[blue]%}%{$bg[red]%}⮀ %{$fg[black]%}$(date +"%T") %{$bg[black]%}%{$fg[red]%}⮀%{$reset_color%}%'
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg_bold[green]%} ✚ "
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg_bold[blue]%} ✹ "
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg_bold[red]%} ✖ "
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg_bold[magenta]%} ➜ "
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[yellow]%} ═ "
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[cyan]%} ✭ "
fi
@dotcypress
Copy link
Author

screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment