mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2026-03-02 03:49:25 +00:00
Add FNM as an alternative to NVM (#292)
* Add FNM as an alternative to NVM * Made the __bobthefish_prompt_nvm generic for nvm and fnm * Hide errors on node_manager current * Check for color_nvm and set color_node based on that
This commit is contained in:
@@ -47,7 +47,7 @@ This theme is based loosely on [agnoster][agnoster].
|
||||
* Current RVM, rbenv or chruby (Ruby) version
|
||||
* Current virtualenv (Python) version
|
||||
* _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`_
|
||||
* Current NVM version (Nodejs) (inactive by default; see configurations in the next paragraph)
|
||||
* Current NVM/FNM version (Nodejs) (inactive by default; see configurations in the next paragraph)
|
||||
* Abbreviated parent directory
|
||||
* Current directory, or Git or Mercurial project name
|
||||
* 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)
|
||||
@@ -85,7 +85,7 @@ set -g theme_display_hg yes
|
||||
set -g theme_display_virtualenv no
|
||||
set -g theme_display_nix no
|
||||
set -g theme_display_ruby no
|
||||
set -g theme_display_nvm yes
|
||||
set -g theme_display_node yes
|
||||
set -g theme_display_user ssh
|
||||
set -g theme_display_hostname ssh
|
||||
set -g theme_display_vi no
|
||||
@@ -124,7 +124,7 @@ set -g theme_newline_prompt '$ '
|
||||
**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_nvm`. If set to `yes`, will display current NVM node version.
|
||||
- `theme_display_node`. If set to `yes`, will display current NVM or FNM node version.
|
||||
- `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_vi`. By default the vi mode indicator will be shown if vi or hybrid key bindings are enabled. Use `no` to hide the indicator, or `yes` to show the indicator.
|
||||
- `theme_display_k8s_context`. This feature is disabled by default. Use `yes` to show the current kubernetes context (`> kubectl config current-context`).
|
||||
|
||||
Reference in New Issue
Block a user