Commit Graph

352 Commits

Author SHA1 Message Date
Darren Kidd
64366ed658 Fix spacing in AWS vault test segments 2020-10-18 14:41:27 -07:00
Darren Kidd
b5d7614aa0 Update colors documentation - missed this last time 2020-10-18 14:41:27 -07:00
Darren Kidd
9ea42689a2 Change text colour when the session has expired 2020-10-18 14:41:27 -07:00
Darren Kidd
5f7292092e Anything greater than an hour now in XhYm format 2020-10-18 14:41:27 -07:00
Darren Kidd
dfec8fa044 Remove unused glyph 2020-10-16 15:09:27 -07:00
Darren Kidd
cb821bb737 Added in custom colours
* Also added in a placeholder to bobthefish_display_colors()
  so I can check theming easily.
2020-10-16 15:09:27 -07:00
Darren Kidd
bc94c77cbd Create new segment for AWS Vault profile
* Tracks the session expiration information and adds this to
  the segment as well (if available - which it should be).
* Using basic blue/white colours at the moment.
* Added doco including link to AWS Vault repo.
2020-10-16 15:09:27 -07:00
Florian Meinicke
140441fe36 Remove trailing whitespaces 2020-10-14 23:59:07 -07:00
Florian Meinicke
ba53918dc2 Fix nord colorscheme for exit, su, jobs segments 2020-10-14 23:59:07 -07:00
Justin Hileman
df1333899d Update README with private mode flag. 2020-08-28 07:07:29 -07:00
Justin Hileman
166fe8a511 Include nord color scheme in bobthefish_display_colors. 2020-08-28 07:01:04 -07:00
Justin Hileman
bd9d0e0f31 Add a $fish_private_mode indicator.
Fixes #263
2020-08-28 07:00:15 -07:00
Thibault Lacroux
a2ad38aa05 Do not display Kubernetes context and namespace if it's the defaults ones 2020-05-04 07:36:17 -07:00
Justin Hileman
870ab7c9be Fix some edge cases when nerd fonts are on and powerline fonts are explicitly disabled. 2020-05-02 09:19:59 -07:00
Duke Jones
e24516b39b Add theme_display_nix variable to other places. 2020-05-02 08:55:27 -07:00
Hans Larsen
aafed7cb24 Add nix prompt, glyph, and colors 2020-05-02 08:55:27 -07:00
Justin Hileman
1f24d5f217 Better ruby segment output when adsf is installed but not configured.
Previously it would add `No` as the ruby version, which was factually correct but not at all what we were looking for. This omits the ruby segment entirely if the adsf plugin for ruby is not installed, or if there is no current ruby version specified.
2020-05-02 08:34:23 -07:00
Justin Hileman
7c2d90152e Handle whitespace in asdf system ruby detection.
Fixes #250
2020-05-02 08:29:34 -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
3b37ec9f0b Make bobthefish_display_colors current color theme more clear
Fixes #247
2020-04-20 10:37:09 -07:00
Justin Hileman
e4c6a5c434 Fix key binding mode indicator in newer Fish
Unfortunately this means we can't have a pretty arrow between the binding mode indicator and the rest of the prompt, but it's better than never updating the indicator :-/

Fixes #248
2020-04-20 09:57:15 -07:00
Justin Hileman
9dd917535a Escape home directory used in regex, too! 2020-03-17 21:09:15 -07:00
Justin Hileman
0c3ae9f932 Fall back to unescaped strings in older Fish
Because that's a lot better than erroring out :)
2020-03-17 21:08:17 -07:00
Justin Hileman
9032cf426b
Merge pull request #244 from epmoyer/escape_regex
Escape project_root_dir before using it in regex
2020-03-17 20:48:32 -07:00
Eric Moyer
46a89abb99 escape project_root_dir before using in regex 2020-03-16 20:10:42 -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
Justin Hileman
5ed60e09ae
Merge pull request #228 from marcplustwo/master
Add nord color scheme
2020-01-21 07:42:19 -08:00
Marc Radau
7d6f9634ac
Add screenshot to README.md 2020-01-21 15:11:02 +01:00
Marc
10b19564ae fix indents, color contrast 2020-01-21 14:53:55 +01:00
Justin Hileman
6ccde62d01
Merge pull request #233 from morozov/user-info-first
In the prompt, show user info before everything else
2020-01-18 13:36:32 -08:00
Sergei Morozov
82a0a44cdc
In the prompt, show user info before everything else 2020-01-17 14:33:42 -08:00
Marc
0d2525e923 fix background job colors 2020-01-07 14:40:41 +01:00
marcplustwo
9c95244b42 add nord color scheme 2019-12-03 17:59:18 +01:00
Justin Hileman
f3301c2e2c Exclude autojump from the background job count
Apparently it is super annoying and not really useful, since it executes in the background every time you change directories, so there is always a "background job" right when the prompt is rendered.

This relies on the AUTOJUMP_SOURCED environment variable to opt users into this behavior, since it would be a bit slower for every user every time we render the prompt.

Fixes #169
2019-11-02 15:48:16 -07:00
Justin Hileman
144eed0acc
Merge pull request #216 from FMeinicke/master
Add option to display sudo-username.
2019-10-27 21:15:05 -07:00
Florian Meinicke
5902e1a49d Don't start a new segment if either display_user' or display_sudo_user' is set 2019-10-27 19:28:55 +01:00
Florian Meinicke
108b6a45f6 Update condition for showing an extra space 2019-10-27 10:20:59 +01:00
Justin Hileman
8e6b82e450
Merge pull request #220 from LucaFilipozzi/master
improve detection of superuser on macOS (fixes #218)
2019-10-26 21:54:09 -07:00
Luca Filipozzi
9cb593e4fe
Update fish_prompt.fish 2019-10-26 21:01:54 -07:00
Florian Meinicke
981eb1a632 Add option to display sudo-username. 2019-10-21 18:51:56 +02:00
Justin Hileman
99b48d565c Show the current theme color scheme in bobthefish_display_colors
Fixes #209
2019-10-20 12:42:29 -07:00
Justin Hileman
4e05b9d494 Show username when in a sudo shell
Fixes #170
2019-10-20 12:33:49 -07:00
Justin Hileman
eb533e75bd
Merge pull request #215 from FMeinicke/master
Use `command uptime` to avoid coloured output when using grc plugin
2019-10-19 19:41:24 -07:00
Florian Meinicke
97eebdcdcd Use command uptime to avoid coloured output when using grc plugin 2019-10-19 12:40:35 +02:00
Justin Hileman
94cb2bb8f0
Merge pull request #213 from FMeinicke/master
Add option to display the number of background jobs
2019-10-11 16:21:21 -07:00
Florian Meinicke
763e9454b2 Don't pay extra forking cost when config is disabled 2019-10-11 16:56:47 +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