Last active
August 29, 2015 13:57
-
-
Save dotcypress/9910282 to your computer and use it in GitHub Desktop.
Hipster zsh theme
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
# ------------------------------------------------------------------------------ | |
# 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 |
Author
dotcypress
commented
Apr 1, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment