├── gitsome.gif ├── com.googlecode.iterm2.plist ├── gitsome.zsh-theme └── README.md /gitsome.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtully/gitsome/HEAD/gitsome.gif -------------------------------------------------------------------------------- /com.googlecode.iterm2.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mtully/gitsome/HEAD/com.googlecode.iterm2.plist -------------------------------------------------------------------------------- /gitsome.zsh-theme: -------------------------------------------------------------------------------- 1 | # get the name of the branch we are on 2 | function git_prompt_info() { 3 | ref=$(git symbolic-ref HEAD 2> /dev/null) || return 4 | echo "$ZSH_THEME_GIT_PROMPT_PREFIX$(parse_git_dirty)${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX" 5 | } 6 | 7 | PROMPT='%{$fg[blue]%}[%1~$(git_prompt_info)%{$fg[blue]%}] %{$reset_color%}' 8 | 9 | ZSH_THEME_GIT_PROMPT_PREFIX=" " 10 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" 11 | ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}" 12 | ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}" 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![screenshot](https://raw.github.com/mtully/gitsome/master/gitsome.gif) 2 | 3 | I love [Oh-My-ZSH](https://github.com/robbyrussell/oh-my-zsh). Part of the magic when switching from the default bash shell was playing with all the built themes. However, most of the themes were too noisy for me. I decided to trim the fat and go bare-bones with *some* git. 4 | 5 | 6 | **Prompt Structure** 7 | 8 | [Directory(branch_name)] 9 | 10 | This super simple prompt with some git: 11 | 12 | 1. The current directory 13 | 2. Current git branch name 14 | 3. Git status on the current branch (red/green) 15 | 16 | 17 | **Colors and formatting** 18 | 19 | Gitsome now uses colors from [Ahmet Sülek's](https://github.com/ahmetsulek) awesome terminal color theme [Flat Terminal](https://github.com/ahmetsulek/flat-terminal). Red and green are slightly brighter because I prefer my terminal with a little bit of transparency. iTerm settings are included now. 20 | 21 | The typeface is [Source Code Pro](https://github.com/adobe/source-code-pro) from Adobe, set to 16pt for failing eyes. 22 | --------------------------------------------------------------------------------