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
Justin Hileman
e31962395f
Preserve compatibility with fish <2.5
2019-01-27 01:19:39 -08:00
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.
2019-01-22 18:22:17 -08:00
Justin Hileman
b13f022708
Stop stripping trailing zeros from duration in 3.0
...
Fixes #184
2019-01-16 08:18:57 -08:00
Justin Hileman
4ccdd7bdcf
Support symlinks in project-relative paths in Fish 3.0
...
Fixes #181
2019-01-13 11:24:41 -08:00
Justin Hileman
ed0c2a4cc5
Use realpath for ignored VCS directories.
2019-01-13 10:46:50 -08:00
Justin Hileman
462878a929
Rename a bunch of variables called current_dir
to what they actually are.
2019-01-13 10:02:32 -08:00
Justin Hileman
a2b56a33fb
Reformat with fish_indent
2019-01-13 09:56:20 -08: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
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
2018-06-17 05:52:16 -07:00
Gregor Gebhardt
ed3ca3d618
added support for conda environments. ( #150 )
...
* added support for conda environments.
2018-06-02 01:27:26 -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
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
2018-05-05 05:13:59 -07: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
Justin Hileman
0cbeb3bc06
Make stderr redirection forward compatible
2018-05-03 15:41:35 -07:00
Justin Hileman
0c4d7e6edd
Merge pull request #149 from remche/master
...
Fixing desk prompt
2018-04-12 07:46:47 -07:00
remche
d29026fab6
fixing desk prompt
2018-04-05 14:41:22 +02: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
3b0c6929ff
What's up.
2018-03-25 08:58:10 -07:00
Justin Hileman
b579292c22
Add the dev null redirect missed in #140
2018-03-22 23:02:51 -07:00
Alberto Cavalin
c6d8357a91
fish_prompt: fix __bobthefish_rvm_info for both rvm installation types ( #140 )
2018-03-22 23:01:39 -07:00
remche
0cc32a5585
adding desk prompt ( #132 )
...
A prompt segment for desk shell environment.
https://github.com/jamesob/desk
2018-03-21 07:08:21 -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
Justin Hileman
e57a8f344c
Support hiding "master" branch name.
...
I've been using this for a bit, and I'm starting to think this should be the default, so I might switch it from opt-in to opt-out at some point :)
2018-03-03 19:59:33 -08:00
Justin Hileman
39d2739fb7
Fix python version detection with pypy (probably)
...
See #137
2018-03-01 15:51:03 -08:00
Justin Hileman
348666beaf
Better +/-0 filtering
...
Fixes #135
2018-02-24 10:29:21 -08:00
Justin Hileman
e3d4545f74
Nope. That one didn't work in empty repos. Oh well.
2018-02-21 09:56:53 -08:00
Justin Hileman
dd3d58ac5e
Fix regression in "staged" git flag
...
Fixes #134
2018-02-21 09:46:01 -08:00
Justin Hileman
523f7d916a
Omit +0 and -0 from verbose dirty state
2018-02-20 22:33:51 -08:00
Justin Hileman
8bd72dbe19
Match "or return" style used elsewhere
2018-02-20 22:30:19 -08: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
Justin Hileman
d1731ae1e1
huh. weird that we were still using glyphs there.
2018-02-20 22:20:50 -08:00
Justin Hileman
da2cd2eac4
use index for git staged status
...
hashtag premature optimizations
2018-02-20 22:16:17 -08:00
Justin Hileman
e067bba8a4
words
2018-02-20 22:15:23 -08:00
remche
6b65311b6c
fixing dirty indentation
2018-02-20 14:57:40 +01:00
remche
f8d99f2a46
adding desk prompt
2018-02-16 15:18:48 +01:00
Justin Hileman
aa6a8e3c1d
Stop looking for .hg when we hit root
...
We used to do this, in a different way, but let's make it super explicit.
Fixes #127
2018-01-28 19:45:53 -08:00
Peter Tellgren
728c52d6a3
Add Kubernetes context flag and default value to README
2018-01-19 10:17:07 -08:00
Justin Hileman
feb914dd16
Add install hook with 2.2.x support instructions.
...
Fixes #124
2018-01-11 10:38:18 -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
Justin Hileman
03ad58508a
Don't show k8s segment for empty "current context"
...
Fixes #122
2018-01-10 06:38:55 -08:00
Justin Hileman
914530cca4
Fix typo in hostname display
...
Fixes #121
2018-01-03 13:23:57 -08:00
Justin Hileman
d657024ce3
Support replace_one vi mode
...
Fixes #120
2017-12-31 05:44:38 -08:00
Justin Hileman
69c737f592
Support k8s $KUBECONFIG, multiple configs, fallback.
2017-12-27 12:06:24 -08:00
Avital Tamir
6583634a9f
Added support for showing current kubernetes context
2017-12-27 12:06:24 -08:00
Justin Hileman
d8d7a544cf
Oops :)
2017-12-24 11:51:22 -08:00