mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
parent
ee5c1e29b8
commit
d82bd5e214
27
README.md
27
README.md
@ -98,6 +98,7 @@ set -g theme_color_scheme dark
|
|||||||
- `theme_title_use_abbreviated_path`. Default is `yes`. This means your home directory will be displayed as `~` and `/usr/local` as `/u/local`. Set it to `no` if you prefer full paths in title.
|
- `theme_title_use_abbreviated_path`. Default is `yes`. This means your home directory will be displayed as `~` and `/usr/local` as `/u/local`. Set it to `no` if you prefer full paths in title.
|
||||||
|
|
||||||
**Prompt options**
|
**Prompt options**
|
||||||
|
|
||||||
- `theme_display_ruby`. Use `no` to completely hide all information about Ruby version. By default Ruby version displayed if there is the difference from default settings.
|
- `theme_display_ruby`. Use `no` to completely hide all information about Ruby version. By default Ruby version displayed if there is the difference from default settings.
|
||||||
- `theme_display_vagrant`. This feature is disabled by default, use `yes` to display Vagrant status in your prompt. Please note that only the VirtualBox and VMWare providers are supported.
|
- `theme_display_vagrant`. This feature is disabled by default, use `yes` to display Vagrant status in your prompt. Please note that only the VirtualBox and VMWare providers are supported.
|
||||||
- `theme_show_exit_status`. Set this option to yes to have the prompt show the last exit code if it was non_zero instead of just the exclamation mark.
|
- `theme_show_exit_status`. Set this option to yes to have the prompt show the last exit code if it was non_zero instead of just the exclamation mark.
|
||||||
@ -159,6 +160,32 @@ variables to set the colors of the prompt. See the "Colors" section of
|
|||||||
`fish_prompt.fish` for details.
|
`fish_prompt.fish` for details.
|
||||||
|
|
||||||
|
|
||||||
|
### Overrides
|
||||||
|
|
||||||
|
You can disable the theme default greeting, vi mode prompt, right prompt, or title entirely — or override with your own — by adding custom functions to `~/.config/fish/functions`:
|
||||||
|
|
||||||
|
- `~/.config/fish/functions/fish_greeting.fish`
|
||||||
|
- `~/.config/fish/functions/fish_mode_prompt.fish`
|
||||||
|
- `~/.config/fish/functions/fish_right_prompt.fish`
|
||||||
|
- `~/.config/fish/functions/fish_title.fish`
|
||||||
|
|
||||||
|
To disable them completely, use an empty function:
|
||||||
|
|
||||||
|
```fish
|
||||||
|
function fish_right_prompt; end
|
||||||
|
```
|
||||||
|
|
||||||
|
… Or copy one from your favorite theme, make up something of your own, or copy/paste a bobthefish default function and modify it to your taste!
|
||||||
|
|
||||||
|
```fish
|
||||||
|
function fish_greeting
|
||||||
|
set_color $fish_color_autosuggestion
|
||||||
|
echo "I'm completely operational, and all my circuits are functioning perfectly."
|
||||||
|
set_color normal
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
[fish]: https://github.com/fish-shell/fish-shell
|
[fish]: https://github.com/fish-shell/fish-shell
|
||||||
[screencast]: https://cloud.githubusercontent.com/assets/53660/18028510/f16f6b2c-6c35-11e6-8eb9-9f23ea3cce2e.gif
|
[screencast]: https://cloud.githubusercontent.com/assets/53660/18028510/f16f6b2c-6c35-11e6-8eb9-9f23ea3cce2e.gif
|
||||||
[patching]: https://powerline.readthedocs.org/en/master/installation.html#patched-fonts
|
[patching]: https://powerline.readthedocs.org/en/master/installation.html#patched-fonts
|
||||||
|
Loading…
Reference in New Issue
Block a user