Commit Graph

103 Commits

Author SHA1 Message Date
Hans van Luttikhuizen-Ross
96584de3df
Add color scheme using JetBrains' Darcula's colors 2022-09-12 11:09:09 +02:00
Justin Hileman
2dcfcab653
Fix invalid range in node segment
Fixes #326
2022-08-01 21:41:04 -06:00
Sean Patrick Hagen
4828218af5
Simplifying the prompt 2022-06-18 14:08:52 -07:00
Sean Patrick Hagen
d25d03ab4a
Better color setting for prompt 2022-06-17 13:01:51 -07:00
Sean Patrick Hagen
bb9c3f1946
Ensure we go up a directory each iteration
Whoops
2022-06-17 12:58:52 -07:00
Sean Patrick Hagen
92a2e46734
Update loop for finding go.mod
Also had to move `set -l real_pwd (__bobthefish_pwd)` above the prompts so that
`$real_pwd` is available inside the prompt function
2022-06-17 12:48:58 -07:00
Sean Patrick Hagen
fffbde266f
Better "find directory", copied from hg code 2022-06-17 12:41:49 -07:00
Sean Patrick Hagen
27f900076e
Some prompt cleanup 2022-06-17 12:40:18 -07:00
Sean Patrick Hagen
69e58a2f68
Better greping 2022-06-17 12:40:13 -07:00
Sean Patrick Hagen
20eb30bf4f
Removing some un-needed code 2022-06-17 12:26:05 -07:00
Sean Patrick Hagen
64a6f8ee18
More logic cleanup/fixing 2022-06-17 12:21:52 -07:00
Sean Patrick Hagen
1663a155f8
More logic fixing 2022-06-17 11:54:52 -07:00
Sean Patrick Hagen
4b3197d1b0
Sort out the logic a bit more 2022-06-17 11:41:50 -07:00
Sean Patrick Hagen
9ca1260fc5
Rework __bobthefish_prompt_golang to be more like "rubies" prompt
First checks to see if `asdf` is installed. If it is, checks to see if either of
the plugins ( `golang` or `go-sdk` ) that install a version of Go have an
installed version. If they do, use that version.

If `asdf` isn't installed, check the `go.mod` file. If in a folder that has a
`go.mod` or a parent folder has a `go.mod`, check that file for the Go version.

Lastly, check if there's a `go` executable on the current path. If there isn't
set a flag so that the go version will be printed out in red rather than blue.
2022-06-17 11:24:14 -07:00
Sean Patrick Hagen
1434509569
Add Go prompt 2022-06-10 15:23:32 -07:00
Shane Mook
14a6f2b317
Update ruby asdf support for output of asdf v0.8.1 (#305)
- asdf not output three columns for for `asdf current version`, the first being the plugin name
- Update the provenance format to match
2022-04-05 13:16:16 -04:00
Hans Larsen
1eaed8c399
Add more options to conditionally show node version (#315) 2022-02-03 02:15:51 -05:00
Justin Hileman
e69150081b Add k8s-context segment to bobthefish_display_colors 2021-12-28 08:46:33 -05:00
Victor Bersy
2c080ceced Fix k8s colors 2021-12-28 08:46:26 -05:00
Justin Hileman
332f23abd7 Use more portable uname -n rather than hostname.
Fixes #312
2021-11-05 10:16:55 -04:00
Pavel Zaikin
3bd40175eb
show git tags if any
Without change tags not shown (because return happen earlier).
With change tags shown if exists.
2021-10-25 11:36:58 +05:00
Paulo Flabiano Smorigo
1c1c2cfc42 Merge branch 'master' into screen 2021-09-10 10:35:36 -03:00
Josselin Auguste
12d5be5c86 Add gruvbox light theme 2021-01-28 11:30:06 +01:00
Nathan Gilbert
626bd39b00 update check for nvm to allow for functions 2021-01-27 19:51:15 -08:00
Justin Hileman
27c4df467d Minor code style cleanup. 2021-01-24 14:25:02 -08:00
Wes Baker
af5aac28c4
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
2021-01-24 14:14:30 -08:00
Nathan Gilbert
954fbc961b
move files to support fisher plugin standards (#293) 2021-01-23 10:47:21 -08:00
Chandler Carruth
25e93443bb Add a colorscheme inspired by the Jellybeans colorscheme for Vim.
All the colors were extracted from the Vim theme here:
  https://github.com/nanotech/jellybeans.vim

I've tried to arrange things in a way that uses well associated colors
(green, red, yellow for working tree state, etc) and provides reasonably
high constrast in all cases. That said, I'm not an artist or design
person, so totally open to suggestions here.
2021-01-08 00:42:36 -08:00
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
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
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
Paulo Flabiano Smorigo
50708c4f88
Merge branch 'master' into screen
Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@gmail.com>
2020-09-03 06:37:13 -03:00
Paulo Flabiano Smorigo
30b289cd5a
screen: making it opt-in (verbose off), example and using string command
Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@gmail.com>
2020-09-03 06:32:11 -03:00
Paulo Flabiano Smorigo
cde6108d7b
Display screen session if you set theme_display_screen to yes
Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@gmail.com>
2020-08-30 08:43:38 -03: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
Hans Larsen
aafed7cb24 Add nix prompt, glyph, and colors 2020-05-02 08:55:27 -07:00
Justin Hileman
3b37ec9f0b Make bobthefish_display_colors current color theme more clear
Fixes #247
2020-04-20 10:37:09 -07:00
Marc
10b19564ae fix indents, color contrast 2020-01-21 14:53:55 +01: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
99b48d565c Show the current theme color scheme in bobthefish_display_colors
Fixes #209
2019-10-20 12:42:29 -07:00
Sergei Morozov
5389a26442 Added the k8s namespace value to the prompt and the k8s icon to the segment (#208) 2019-07-01 12:21:31 -07: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
Justin Hileman
47f29c8d6b Simplify nerd fonts config
If nerd fonts are explicitly enabled, implicitly enable powerline font glyphs, too, even if powerline is disabled.

Fixes #194
2019-03-16 13:58:13 -07:00
Minjun Shin
0688cd8e98 change function bobthefish_display_colors to print using the environment value, rather than a fixed characters (#163) 2018-07-18 12:14:44 -07:00
Justin Hileman
bf5f8c4cf4 Refine dracula colors a bit. 2018-05-14 12:25:38 -07:00
Marvin Steadfast
38c9d1f7ee Adding dracula theme 2018-05-11 09:53:26 +02: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