Commit Graph

262 Commits

Author SHA1 Message Date
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
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
Justin Hileman
7d6c23e1dd Rework adsf a bit for performance.
Add a comment re: adsf provenance format caveat.

See #119
2017-12-24 11:28:55 -08:00
John Schank
753189f173 #114 Add asdf ruby version to ruby version prompt
Followed established pattern for chruby and rbenv, adding the ruby
version number from asdf to the ruby prompt, only when the local
ruby version differs from the system ruby.

Note that asdf tracks its versions in a dot file (.tool-versions) so
the concept of what is global/system vs what is local simply depends
upon what file asdf is using to determine the correct version.
Fortunately, asdf reports the .tool-versions file when querying for
the current version.

The downside to this is that correct behavior of this patch will
depend upon the format asdf uses for their provenance string.

See https://github.com/asdf-vm/asdf for details about asdf
2017-12-24 14:25:13 -05:00
Justin Hileman
ab7123e063 Better faster stronger vcs ignore path matching 2017-12-23 19:52:07 -08:00
Justin Hileman
89cda861ba Style change, for consistency. 2017-12-23 19:39:26 -08:00
Justin Hileman
c68498fc79 string trim appears to be a hair faster than regex. 2017-12-23 19:39:10 -08:00
Justin Hileman
61325754bb 3-5x faster basename and dirname. 2017-12-23 19:28:52 -08:00
Justin Hileman
3d3690eb40 200x faster "am i root?" check. 2017-12-23 18:27:01 -08:00
Justin Hileman
1562614484 20x faster "has background jobs" flag. 2017-12-23 18:26:48 -08:00
Justin Hileman
b49a821a81 Minor style fixes 2017-12-23 05:07:56 -08:00
Justin Hileman
a31e4cea30 Update color previews helper.
- Include glyphs for all the glyphy segments
 - Make segment display names consistent with variable names
 - Add virtualgo segment
 - Update user@hostname segment to match current style
2017-12-19 12:33:50 -08:00
Justin Hileman
40bd268210 virtualgo segment cleanup
- Use a virtualgo color variable, even though it's the same as virtualenv.
- Switch to a cleaner nerd fonts go glyph.
- Add a non-nerd fonts go glyph (empty for now, but TBD if this changes).
2017-12-19 12:30:52 -08:00
Justin Hileman
201309db80 Don't set -g color schemes. 2017-12-19 12:21:28 -08:00
Justin Hileman
5b632d1cca Housekeeping. 2017-12-19 08:58:13 -08:00
Jelte Fennema
6916339c0f Add virtualgo support 2017-12-19 11:33:21 -05:00
Justin Hileman
b67c0bd910 Cleaner user/hostname display logic:
- Show if `theme_display_user` / `theme_display_hostname` is set to `yes`.
- Show both user and hostname when using SSH.
- Show user if `$default_user` is set and it isn't the current user.
2017-12-19 08:08:05 -08:00
Justin Hileman
4985cf8a4d Use bold to distinguish between username and hostname. 2017-12-19 08:08:00 -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
Dietrich Daroch
f8012eae84 Add setting for clean multiline prompt 2017-12-19 10:08:06 -05: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
Justin Hileman
4e602d98d7 Fix fish < 2.4 command duration regression
For real this time

Fixes #107
2017-10-01 18:30:49 -07:00
Justin Hileman
0f2a2d9ada Fix fish < 2.4 command duration regression.
See #105

Fixes #107
2017-09-29 07:33:48 -07:00
Justin Hileman
f4378582d6 Clean up some unused glyphs from the nerd fonts PR. 2017-09-07 16:53:17 -07:00
Justin Hileman
c24bcc443d Merge pull request #99 from nemoDreamer/git-glyphs
Git glyphs for Nerd Fonts
2017-09-07 16:50:47 -07:00