Florian Meinicke
981eb1a632
Add option to display sudo-username.
5 years ago
Justin Hileman
99b48d565c
Show the current theme color scheme in bobthefish_display_colors
...
Fixes #209
5 years ago
Justin Hileman
4e05b9d494
Show username when in a sudo shell
...
Fixes #170
5 years ago
Justin Hileman
eb533e75bd
Merge pull request #215 from FMeinicke/master
...
Use `command uptime` to avoid coloured output when using grc plugin
5 years ago
Florian Meinicke
97eebdcdcd
Use `command uptime` to avoid coloured output when using grc plugin
5 years ago
Justin Hileman
94cb2bb8f0
Merge pull request #213 from FMeinicke/master
...
Add option to display the number of background jobs
5 years ago
Florian Meinicke
763e9454b2
Don't pay extra forking cost when config is disabled
5 years ago
Florian Meinicke
ce7e96fba5
Change option name to `theme_show_jobs_verbose`
5 years ago
Florian Meinicke
a3d43d35bd
Add option to display the number of background jobs
5 years ago
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` :)
5 years ago
Justin Hileman
256f43bee3
Merge pull request #212 from genofire/patch-1
...
fix(doc): README options
5 years ago
genofire
121ea4bd1a
fix(doc): README options
5 years ago
Sergei Morozov
5389a26442
Added the k8s namespace value to the prompt and the k8s icon to the segment ( #208 )
5 years ago
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
5 years ago
Martin Kletzander
3b2e847fcc
Fix status reporting ( #197 )
...
The status needs to be saved before anything else is done, otherwise it will get
overwritten. Since commit ac45a5cb95
this was the case with the `if` block in
a way that `last_status` was always `0`.
6 years ago
Justin Hileman
b9bc625059
Clean up theme_newline_prompt
...
No need for a variable, just echo. Allow setting $theme_newline_prompt to an empty string.
6 years ago
Thomas Flori
7d15e1ba1a
allow colors in custom prompt
6 years ago
Thomas Flori
b9eb494dbf
allow custom prompt in new line
6 years ago
Justin Hileman
ac45a5cb95
Minor cleanup
6 years ago
Dietrich Daroch
2c560f8c17
Fix: Use a simple prompt on dumb terminals. ( #171 )
...
Dumb terminals don't like this fancy prompt.
This is a really a workaround for loading the theme on demand, but it greatly
simplifies managing plugins and allows just relying on current plugin managers.
6 years ago
Justin Hileman
5e19f4f6c9
Fix function descriptions for a couple of helpers.
6 years ago
Justin Hileman
5273c92fa5
Use `pwd -P` for a normalized $PWD.
...
Because bobthefish interacts so much with external commands like git and hg, which resolve symlinks and don't do case folding on case-insensitive filesystems, we need to always use a normalized $PWD to compare paths.
Fixes #191
Fixes #181
6 years ago
Justin Hileman
f49a8424cd
Truncate the middle of really long git branch names
...
Fixes #161
6 years ago
Justin Hileman
da6379491f
Add `theme_display_git_stashed_verbose` to docs.
6 years ago
Claudio Mezzasalma
0a6df2de5a
Add Stashes count to Git Prompt ( #188 )
...
Introduce a new variable, `$theme_display_git_stashed_verbose`, which adds the stashes count to the prompt if set to `yes`
6 years ago
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
6 years ago
Justin Hileman
e31962395f
Preserve compatibility with fish <2.5
6 years ago
Petar Kirov
c148b97f5c
fish_greeting.fish: Make existance of uptime command optional ( #189 )
...
The `uptime` command does not exist in some environments, such as MSYS2,
so execute the command only if it exists.
6 years ago
Justin Hileman
b13f022708
Stop stripping trailing zeros from duration in 3.0
...
Fixes #184
6 years ago
Justin Hileman
4ccdd7bdcf
Support symlinks in project-relative paths in Fish 3.0
...
Fixes #181
6 years ago
Justin Hileman
ed0c2a4cc5
Use realpath for ignored VCS directories.
6 years ago
Justin Hileman
462878a929
Rename a bunch of variables called `current_dir` to what they actually are.
6 years ago
Justin Hileman
a2b56a33fb
Reformat with `fish_indent`
6 years ago
Minjun Shin
0688cd8e98
change function bobthefish_display_colors to print using the environment value, rather than a fixed characters ( #163 )
6 years ago
Justin Hileman
fcec6aeece
Omit functions and builtins when looking for ruby environment managers
...
This is especially important for asdf, because it turns out lots of people have aliases and functions called that :)
Fixes #160
6 years ago
Gregor Gebhardt
ed3ca3d618
added support for conda environments. ( #150 )
...
* added support for conda environments.
6 years ago
Justin Hileman
bf5f8c4cf4
Refine dracula colors a bit.
6 years ago
Marvin Steadfast
38c9d1f7ee
Adding dracula theme
6 years ago
Justin Hileman
2642107093
Defer to prompt_hostname for hostname segment
...
As of fish 2.5.0, there's a canonical way to get the current hostname to put in the prompt. Let's use that.
Add a polyfill for fish < 2.5.0.
See #152
6 years ago
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.
6 years ago
Justin Hileman
0cbeb3bc06
Make stderr redirection forward compatible
6 years ago
Justin Hileman
0c4d7e6edd
Merge pull request #149 from remche/master
...
Fixing desk prompt
7 years ago
remche
d29026fab6
fixing desk prompt
7 years ago
Philip Schaten
f66bee227a
Allow three values for theme_display_user.
7 years ago
Philip Schaten
89ca08abc4
theme_display_ssh defaults to no
7 years ago
Philip Schaten
2428af06aa
theme_display_ssh - switch added
7 years ago
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.
7 years ago
Justin Hileman
3b0c6929ff
What's up.
7 years ago
Justin Hileman
b579292c22
Add the dev null redirect missed in #140
7 years ago
Alberto Cavalin
c6d8357a91
fish_prompt: fix __bobthefish_rvm_info for both rvm installation types ( #140 )
7 years ago