Commit Graph

156 Commits

Author SHA1 Message Date
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
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
Cameron Moon
ee8e150424 rename flag from 'force' to 'yes' 2017-08-08 12:46:23 +10:00
Cameron Moon
d204ecdb5b Enable vi mode display for hybrid_bindings
Vi mode display should be enabled for people using the hybrid_bindings
function found in the fish documentation.
2017-08-08 12:20:14 +10:00
Cameron Moon
5337033ee4 Add option to force show vi mode 2017-08-08 12:19:10 +10:00
Philip Blyth
e2cf9a7d3b Removed trailing white-space 2017-08-02 23:45:27 +01:00
Philip Blyth
7e6543a3f0 Merge branch 'master' into git-glyphs 2017-07-18 14:49:45 -04:00
Jingkai Tang
9ec8d2cf24 Fix git warnings in __bobthefish_prompt_git 2017-07-10 15:04:40 +08:00
Andrew Choo
0b3b522160 Implement newline cursor feature with one option instead of three
Per bobthecow:

"In keeping with bobthefish's goal to be opinionated but flexible,
let's do this with one option, not three. I'm leaning toward:

set -g theme_cursor_on_new_line yes
Then:

Always show the arrow at the end of the first line
Always show a minimalist arrow at the start of the next line"
2017-06-17 11:37:12 -04:00
Andrew Choo
176c3a7a69 Remove tabs 2017-06-10 22:51:31 -04:00
Andrew Choo
28dfc4f985 Add ability to have cursor start on a new line
In order for the right prompt to work the new line must start with at
least one character. A space is used for this purpose. This looks a bit
strange so added option to include the default right arrow glyph. Lastly,
added option to remove the right arrow glyph on the first (top) line.
2017-06-10 22:51:14 -04:00
Philip Blyth
dc151776b6 moar git-glyps! 2017-05-18 17:10:24 -04:00
Philip Blyth
f8c8dc7f07 Moved Git chars to glyph variables 2017-05-03 15:23:28 -04:00
Justin Hileman
87534a008a Fix issues when RBENV_ROOT/version doesn't exist.
Fixes #89
2017-04-26 20:12:30 -07:00
Justin Hileman
1eb4cf63ac Show vi mode prompt in hybrid key bindings too. 2017-03-07 05:23:18 -08:00
Justin Hileman
cbae8ad3fc Fix git worktree support.
Fixes #82
2017-02-28 07:09:38 -08:00
LaurentTreguier
cb6bb0ecb3 Use a different glyph color when using fakeroot 2017-02-27 20:44:01 +01:00
LaurentTreguier
23fdcb8048 Display superuser glyph when using fakeroot 2017-02-27 10:37:15 +01:00
Justin Hileman
750030a110 Remove a ton of set_color normal calls.
Eases the pain of fish-shell/fish-shell#3793 just a bit.

This _shouldn't_ ever look any different to the end user. I think.
2017-02-01 05:13:31 -08:00
Justin Hileman
9b414bc6fb Speed up git ahead/behind parsing by ~20% 2017-01-30 07:33:52 -08:00
Justin Hileman
908a7b5365 s/sed/string replace builtin/g 2017-01-29 20:02:01 -08:00
Justin Hileman
86116b7e80 Merge pull request #72 from kephas/master
Display user in terminal title
2017-01-19 10:15:54 -08:00
Jelte Fennema
b5f7b1eaee Make python --version a single line
Pypy outputs two lines and  causes an error this way.
2017-01-17 19:30:41 +01:00
Pierre Thierry
551a768534 Display user in terminal title 2017-01-10 00:55:09 +01:00
Justin Hileman
48f067bac0 Add support for full paths in prompt
(and support for abbreviated project-relative paths!)

Use `fish_prompt_pwd_dir_length` and `theme_project_dir_length` to control the number of characters shown from each parent directory name.

Fixes #68
2016-12-29 16:12:55 -08:00
Justin Hileman
ee5c1e29b8 More efficient python version checking, capture pypy3. 2016-10-18 07:25:22 -07:00
Justin Hileman
dca95833dc Merge pull request #60 from rominf/master
Fix #52
2016-10-18 07:23:39 -07:00
Justin Hileman
1f827c6bab Update vi mode prompt.
* Default to showing vi mode prompt (if the current bind mode is vi). Allow overriding by setting it `theme_display_vi` to `no`.

* Remove `theme_display_vi_hide_mode`, because I don't like the prompt jumping around when changing modes.

* Override `fish_mode_prompt` because we're already handling it inside `fish_prompt`. Add a note so future code archeologists can figure out how to override.

* Add support for `replace-one` bind mode.

Fixes #65
2016-10-18 07:04:59 -07:00
Roman Inflianskas
a2df7fbacd Fix #52 2016-08-28 23:32:52 +03:00
Justin Hileman
ff560c97a8 Merge pull request #57 from Jguer/master
Add Gruvbox Theme
2016-08-27 09:05:24 -07:00
Justin Hileman
8898658a9a Speed up Vagrant status code by 10-15x.
(Excluding whatever time is spent getting the status from the provider, of course. Can't do much with that)

See #56
2016-08-25 12:18:10 -07:00
Justin Hileman
ca7a3ecaa2 Merge pull request #56 from rickard-von-essen/vargrant-prl
Improved Vagrant provider detection and support for parallels provider.
2016-08-25 12:15:13 -07:00
Justin Hileman
02c4c51973 Whoops. Forgot the non-nerd-fonts tag glyph :) 2016-08-25 08:06:23 -07:00
Justin Hileman
4669e3dad6 Add better tag support in the git branch segment. 2016-08-25 08:01:08 -07:00
Justin Hileman
b2f097c91c Glyph cleanup
* Rearrange overrides so they're closer to what they're overriding
* Remove some unused Powerline glyph definitions
* Use all the pretty Octicons when Nerd Fonts support is enabled
2016-08-25 07:59:01 -07:00
Rickard von Essen
525416cc19 Improved handling of Vagrantfiles with multiple providers 2016-08-22 21:38:28 +02:00
Jguer
3ecd0726ca Changed path segment for gruvbox 2016-08-22 12:00:02 +01:00
Rickard von Essen
54ef10a844 Make provider a local var 2016-08-22 08:22:04 +02:00
John Guerreiro
22451d400f Fixed repo color to green instead of yellow 2016-08-22 02:45:23 +01:00
Jguer
1133c4b7bf Added gruvbox theme 2016-08-22 02:40:15 +01:00
Rickard von Essen
2cc237267e Improved Vagrant provider detection and support for parallels provider.
Improved the detection of Vagrant provider. The previouse didn't
correctly detect which provider was used.

Added support for detecting the state of Parallels vagrant provider.
2016-08-21 21:11:35 +02:00
Justin Hileman
ab720a3bb3 Add docker and theme configs to fish_prompt comment. 2016-06-08 19:31:16 -07:00