Commit Graph

79 Commits

Author SHA1 Message Date
Justin Hileman
df1333899d Update README with private mode flag. 2020-08-28 07:07:29 -07:00
Duke Jones
e24516b39b Add theme_display_nix variable to other places. 2020-05-02 08:55:27 -07:00
Justin Hileman
6e75f31c3f Add timezone support to right prompt.
Allow overriding the right prompt datestamp timezone:

```
set -g theme_date_timezone America/Los_Angeles
```
2020-04-21 13:54:33 -07:00
Justin Hileman
dbe3009b02
Merge pull request #214 from noseglid/master
Simplify kubernetes context fetching
2020-02-29 15:02:04 -08:00
Alexander Olsson
740150da19
Make displaying the k8s namespace optional
Invoking the `kubectl` command can be expensive, and since there's not a
lot of time to play with when rendering the prompt without it feeling
slugging, make the namespace fetching optional.
2020-02-29 18:45:26 +01:00
Marc Radau
7d6f9634ac
Add screenshot to README.md 2020-01-21 15:11:02 +01:00
marcplustwo
9c95244b42 add nord color scheme 2019-12-03 17:59:18 +01:00
Florian Meinicke
981eb1a632 Add option to display sudo-username. 2019-10-21 18:51:56 +02:00
Florian Meinicke
ce7e96fba5 Change option name to theme_show_jobs_verbose 2019-10-11 16:51:50 +02:00
Florian Meinicke
a3d43d35bd Add option to display the number of background jobs 2019-10-10 22:19:14 +02:00
Justin Hileman
cf096612c8 Stop truncating git branch names by default.
I used to think this was awesome, but have come around. The option is still there if you want it. Set `theme_use_abbreviated_branch_name` to `yes` :)
2019-10-02 14:51:34 -07:00
genofire
121ea4bd1a
fix(doc): README options 2019-09-20 23:22:55 +02:00
Alessandro Fazzi
1abb331c60 Add NVM prompt (#207)
* Add NVM prompt

* Do not show prompt when `system` node is used

* Change the glyph used for nvm prompt
2019-07-01 07:40:53 -07:00
Thomas Flori
b9eb494dbf allow custom prompt in new line 2019-03-26 08:12:25 -07:00
Justin Hileman
da6379491f Add theme_display_git_stashed_verbose to docs. 2019-03-16 15:36:40 -07:00
Marvin Steadfast
38c9d1f7ee Adding dracula theme 2018-05-11 09:53:26 +02:00
Justin Hileman
67bc90d291 Disable Kubernetes segment by default
It turns out lots of people have a default kube context because they used Google Cloud SDK or something once. It doesn't really hurt to leave it there, but showing all these (reeeallllly long) kube context segments is confusing people.

If you really want to show your kube context, set `theme_display_k8s_context` to `yes`.

See #141, #147, #153, etc.
2018-05-04 05:46:20 -07:00
Philip Schaten
f66bee227a Allow three values for theme_display_user. 2018-03-25 09:01:22 -07:00
Philip Schaten
89ca08abc4 theme_display_ssh defaults to no 2018-03-25 09:01:22 -07:00
Philip Schaten
2428af06aa theme_display_ssh - switch added 2018-03-25 09:01:22 -07:00
Justin Hileman
5acaae3f62 Improved color scheme handling.
- Improve performance significantly in the base case (i.e. when git or something isn't slowing it down anyway).
- Make `bobthefish_display_colors` a non-underscore function. It's meant for public use :)
- Support previewing _different_ color schemes via `bobthefish_display_colors`. Pass a color scheme name, or `--all` to preview everything.
- Make color overrides a bit fishier: use a `bobthefish_colors` function to override color schemes, rather than declaring a whole pile of variables.
- Add support for a base color scheme in `bobthefish_colors`, in case you don't want to override everything.
- Add a deprecation notice with upgrade instructions for users with old-style custom color schemes.
2018-03-25 08:58:10 -07:00
Justin Hileman
4ac7f3c5d7 Switch "hide git master branch" logic from opt-in to opt-out
This is a better default.
2018-03-21 06:38:08 -07:00
Philip Fulgham
180f251189 Add verbose option for Git dirty state (#133)
* Add verbose option for Git dirty state

* Simplify git dirty verbose setting check
2018-02-20 22:25:19 -08:00
Peter Tellgren
728c52d6a3 Add Kubernetes context flag and default value to README 2018-01-19 10:17:07 -08:00
Justin Hileman
d0a6e45403 Allow disabling the "dirty" check for git.
This gets suuuuper slow for big repos. Support disabling it globally, via `theme_display_git_dirty`, or per-repo, using the `bash.showDirtyState` git config.
2018-01-10 13:43:38 -08:00
Ben
444b9a4827 Add support for choosing to show user and/or hostname in prompt (#71)
Add support for choosing to show user and/or hostname in prompt
2017-12-19 10:38:15 -05:00
Justin Hileman
500fc527a7 Add theme_newline_cursor = clean to docs. 2017-12-19 07:10:48 -08:00
Justin Hileman
162062b3ac Clean up theme_vcs_ignore_paths implementation.
- realpath isn't necessary for $PWD
- match subdirectories of all ignore paths (otherwise the vcs segment is missing for the directory itself, but shows in subdirectories, which is weird)
- check whether $theme_vsc_ignore_paths is set to save a command substitution
2017-12-19 06:58:56 -08:00
Jesper Derehag
2673d2c39d Add support for ignoring VCS directories
Signed-off-by: Jesper Derehag <jderehag@hotmail.com>
2017-12-19 09:41:12 -05:00
Cameron Moon
ee8e150424 rename flag from 'force' to 'yes' 2017-08-08 12:46:23 +10:00
Cameron Moon
22114be816 Add docs for theme_display_vi 2017-08-08 12:43:10 +10:00
Andrew Choo
0b3b522160 Implement newline cursor feature with one option instead of three
Per bobthecow:

"In keeping with bobthefish's goal to be opinionated but flexible,
let's do this with one option, not three. I'm leaning toward:

set -g theme_cursor_on_new_line yes
Then:

Always show the arrow at the end of the first line
Always show a minimalist arrow at the start of the next line"
2017-06-17 11:37:12 -04:00
Andrew Choo
8181b4526b Update README 2017-06-10 22:51:46 -04:00
Justin Hileman
249807071e Add theme_title_display_user config, docs.
See #72
2017-01-19 10:18:56 -08:00
Justin Hileman
48f067bac0 Add support for full paths in prompt
(and support for abbreviated project-relative paths!)

Use `fish_prompt_pwd_dir_length` and `theme_project_dir_length` to control the number of characters shown from each parent directory name.

Fixes #68
2016-12-29 16:12:55 -08:00
Justin Hileman
d82bd5e214 Add documentation for fishy function overrides.
See #58
2016-10-18 07:36:55 -07:00
Justin Hileman
1f827c6bab Update vi mode prompt.
* Default to showing vi mode prompt (if the current bind mode is vi). Allow overriding by setting it `theme_display_vi` to `no`.

* Remove `theme_display_vi_hide_mode`, because I don't like the prompt jumping around when changing modes.

* Override `fish_mode_prompt` because we're already handling it inside `fish_prompt`. Add a note so future code archeologists can figure out how to override.

* Add support for `replace-one` bind mode.

Fixes #65
2016-10-18 07:04:59 -07:00
Justin Hileman
d744b2fe0f Update demo screencast.
Fixes #59
2016-08-27 09:10:07 -07:00
Justin Hileman
6041f9e454 remove slackin badge 2016-08-27 09:08:53 -07:00
Justin Hileman
4a39cb2bdf Add gruvbox to the readme. 2016-08-27 09:07:20 -07:00
zaclimon
f9414db37d Add an option to hide the cmd duration 2016-07-17 18:39:07 -04:00
Justin Hileman
5364df9816 tweak. 2016-06-16 22:46:12 -07:00
Justin Hileman
3ec6e23811 Add color schemes to README
Fixes #49
2016-06-16 22:45:19 -07:00
Justin Hileman
e39a850ed0 Merge pull request #48 from feinstruktur/master
Docker machine display and conditional date
2016-06-08 01:15:24 -07:00
Sven A. Schmidt
d730526c07 Added settings variables to allow date and docker display to be made conditional 2016-06-07 08:31:34 +01:00
Don March
672c637f94 Add configurable color schemes
* Refactor fish_prompt.fish to use semantically named variables
  throughout the script rather than specific colors. Set those variables
  to various colors depending on the `theme_color_scheme` variable.

* Add the `__bobthefish_display_colors` function to easily test and
  preview different color schemes.

* Update documentation.

Fixes #7.
2016-06-06 18:38:19 -04:00
Justin Hileman
340a343a5e Update README with chruby support (added in #45) 2016-05-23 22:25:12 -07:00
Justin Hileman
075e89abfa Update the screencast
Fixes #44
2016-05-22 08:45:00 -07:00
Caesar Schinas
9b3aa58cce Add theme_powerline_fonts option to README 2016-05-17 18:34:05 -03:00
Justin Hileman
c2efeb5740 Make bobthefish git worktree aware
Fixes #29
2016-04-30 22:09:25 -07:00