2015-05-31 22:10:01 +00:00
# bobthefish
2013-09-18 06:17:15 +00:00
bobthefish is a Powerline-style, Git-aware fish theme optimized for awesome.
2015-05-31 22:10:01 +00:00
[](https://github.com/oh-my-fish/oh-my-fish)  [](https://gitter.im/oh-my-fish/oh-my-fish?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge& utm_content=badge)
2013-09-18 06:17:15 +00:00
![bobthefish][screenshot]
2015-05-31 22:10:01 +00:00
### Installation
Add it to your `~/.config/fish/config.fish` file:
Theme bobthefish
Open a new terminal session and run `omf install` .
2013-09-18 06:17:15 +00:00
You will probably need a [Powerline-patched font][patching] for this to work.
[I recommend picking one of these][fonts].
This theme is based loosely on [agnoster][agnoster].
### Features
* A helpful, but not too distracting, greeting.
* A subtle timestamp hanging out off to the right.
* Powerline-style visual hotness.
* More colors than you know what to do with.
* An abbreviated path which doesn't abbreviate the name of the current project.
* All the things you need to know about Git in a glance.
* Visual indication that you can't write to the current directory.
### The Prompt
* Flags:
2015-07-19 23:23:03 +00:00
* Previous command failed (`!`)
* Background jobs (`%`)
* You currently have superpowers (`$`)
2015-07-19 23:30:24 +00:00
* `User@Host` (unless you're the default user)
2014-11-23 17:34:59 +00:00
* Current RVM or rbenv (Ruby) version
* Current virtualenv (Python) version
2015-07-19 23:11:24 +00:00
* _If you use virtualenv, you will probably need to disable the default virtualenv prompt, since it doesn't play nice with fish: `set -x VIRTUAL_ENV_DISABLE_PROMPT 1` _
2013-09-18 06:17:15 +00:00
* Abbreviated parent directory
2014-11-18 04:45:13 +00:00
* Current directory, or Git or Mercurial project name
2015-07-19 23:30:24 +00:00
* Current project's repo branch (< img width = "16" alt = "branch-glyph" src = "https://cloud.githubusercontent.com/assets/53660/8768360/53ee9b58-2e32-11e5-9977-cee0063936fa.png" > master) or detached head (`➦` d0dfd9b)
2014-11-18 04:45:13 +00:00
* Git or Mercurial status, via colors and flags:
2015-07-19 23:23:03 +00:00
* Dirty working directory (`*`)
* Untracked files (`…`)
* Staged changes (`~`)
* Stashed changes (`$`)
* Unpulled commits (`-`)
* Unpushed commits (`+`)
2015-07-19 23:30:24 +00:00
* Unpulled _and_ unpushed commits (`±`)
2014-11-18 04:45:13 +00:00
* _Note that not all of these have been implemented for hg yet :)_
2013-09-18 06:17:15 +00:00
* Abbreviated project-relative path
2014-11-26 17:04:10 +00:00
### Configuration
You can override some default options in your `config.fish` :
2015-07-19 23:30:24 +00:00
```fish
set -g theme_display_git no
set -g theme_display_git_untracked no
set -g theme_display_git_ahead_verbose yes
set -g theme_display_hg yes
set -g theme_display_virtualenv no
set -g theme_display_ruby no
set -g theme_display_user yes
2015-10-13 21:08:06 +00:00
set -g theme_title_display_process yes
set -g theme_title_display_path no
2015-10-13 20:39:52 +00:00
set -g theme_date_format "+%a %H:%M"
2015-10-14 03:34:35 +00:00
set -g theme_avoid_ambiguous_glyphs yes
2015-07-19 23:30:24 +00:00
set -g default_user your_normal_user
```
2014-11-26 17:04:10 +00:00
2013-09-18 06:17:15 +00:00
[screenshot]: http://i.0x7f.us/bobthefish.png
[patching]: https://powerline.readthedocs.org/en/latest/fontpatching.html
[fonts]: https://github.com/Lokaltog/powerline-fonts
2014-07-14 03:57:41 +00:00
[agnoster]: https://gist.github.com/agnoster/3712874