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
8 years ago
Justin Hileman
ee5c1e29b8
More efficient python version checking, capture pypy3.
8 years ago
Justin Hileman
dca95833dc
Merge pull request #60 from rominf/master
...
Fix #52
8 years ago
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
8 years ago
Roman Inflianskas
a2df7fbacd
Fix #52
8 years ago
Justin Hileman
ff560c97a8
Merge pull request #57 from Jguer/master
...
Add Gruvbox Theme
8 years ago
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
8 years ago
Justin Hileman
ca7a3ecaa2
Merge pull request #56 from rickard-von-essen/vargrant-prl
...
Improved Vagrant provider detection and support for parallels provider.
8 years ago
Justin Hileman
02c4c51973
Whoops. Forgot the non-nerd-fonts tag glyph :)
8 years ago
Justin Hileman
4669e3dad6
Add better tag support in the git branch segment.
8 years ago
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
8 years ago
Rickard von Essen
525416cc19
Improved handling of Vagrantfiles with multiple providers
8 years ago
Jguer
3ecd0726ca
Changed path segment for gruvbox
8 years ago
Rickard von Essen
54ef10a844
Make provider a local var
8 years ago
John Guerreiro
22451d400f
Fixed repo color to green instead of yellow
8 years ago
Jguer
1133c4b7bf
Added gruvbox theme
8 years ago
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.
8 years ago
Justin Hileman
ab720a3bb3
Add docker and theme configs to fish_prompt comment.
8 years ago
Justin Hileman
ac1a6e230c
Update docker segment to use new color variables.
...
See #47
See #48
8 years ago
Justin Hileman
e39a850ed0
Merge pull request #48 from feinstruktur/master
...
Docker machine display and conditional date
8 years ago
Sven A. Schmidt
77977f882f
Added `-d` to function
8 years ago
Don March
0ea2e743a7
Add example code for a custom color scheme
8 years ago
Sven A. Schmidt
d730526c07
Added settings variables to allow date and docker display to be made conditional
8 years ago
Don March
023030fd50
Improve `__bobthefish_display_colors` variable
...
Per suggestions from @bobthecow.
8 years ago
Justin Hileman
0ac50039a7
Color schemes tweaks for themes with more limited palettes.
8 years ago
Don March
672c637f94
Add configurable color schemes
...
* Refactor fish_prompt.fish to use semantically named variables
throughout the script rather than specific colors. Set those variables
to various colors depending on the `theme_color_scheme` variable.
* Add the `__bobthefish_display_colors` function to easily test and
preview different color schemes.
* Update documentation.
Fixes #7 .
8 years ago
Sven A. Schmidt
43af67f68a
Added segment to display DOCKER_MACHINE_NAME (indicating which docker daemon we're talking to)
8 years ago
pik
cfb7c7df79
Support chruby ruby_version for show_ruby()
8 years ago
Justin Hileman
f269522c8c
Merge pull request #43 from caesar/git-status-colors
...
Change colors for git staged and stashed statuses
8 years ago
Caesar Schinas
9ce0cc2383
Remove quotes for consistency
8 years ago
Caesar Schinas
22fabb438e
Use ⎇ symbol if Powerline is disabled
8 years ago
Caesar Schinas
4dd6a6d3ca
Change colors for git staged and stashed statuses
8 years ago
Caesar Schinas
cb4f97fe96
Make using Powerline glyphs the default
8 years ago
Caesar Schinas
ac57f8959b
Add option to not use Powerline glyphs
8 years ago
Justin Hileman
c2efeb5740
Make bobthefish git worktree aware
...
Fixes #29
9 years ago
Justin Hileman
e01fe9aaac
Fix leaky colors from the right prompt
...
Fixes #31
9 years ago
Justin Hileman
d7fe9b42bd
Performance improvements. Thanks builtins!
9 years ago
Justin Hileman
aa83e34148
Use `command` for a few more things that get overridden
9 years ago
Justin Hileman
088a0f44e0
Consistency++
...
* Only use if/end blocks for things longer than one line.
* Only use inline `[ foo ]; and bar` style when `bar` is `return`. Break the `and`/`or` onto a second line for anything that actually has a side effect.
* More consistent use of `echo` flags.
* Don't use `pwd` when `$PWD` will do.
9 years ago
Justin Hileman
3db31f0c52
Faster!
9 years ago
Justin Hileman
89ab00e768
Use local variables for teh rubies.
9 years ago
Justin Hileman
daa9025183
Merge pull request #24 from LambdaLord/master
...
Replace some color constants with existing variables
9 years ago
Justin Hileman
3e72ddf0f9
Merge pull request #25 from paxy97/error_code
...
Add show error code option
9 years ago
Justin Hileman
cc1569f57c
fix `__bobthefish_vagrant_ids` when no id present
...
because `cat` with no arguments just hangs out at stdin waiting for you to type something.
9 years ago
Pavle Portic
3d89a0a3fe
Update README
9 years ago
Pavle Portic
0ab6f79efe
Add show error code option
9 years ago
LambdaLord
7c49324381
Revert unnecessary name change
9 years ago
LambdaLord
ed0eb02dfb
Quick rename for new variable
9 years ago
LambdaLord
10170cb856
Replaced some color values with new variable
9 years ago
LambdaLord
b137eb1bdc
Replace some constants with existing greys
9 years ago
Johnny Robeson
b3e2982abf
fix powerline patched fonts links
9 years ago
Justin Hileman
47eace4182
Fix some vagrant segment copypasta
9 years ago
Justin Hileman
29d78ebaf3
Clean up a bunch of redirects, make 'em fishier.
9 years ago
Justin Hileman
873289224e
Grep the vagrantfile to check for vmware_fusion
...
It's naive, but more likely successful than checking for vmrun, which most people prolly never link.
9 years ago
Justin Hileman
a9cc3400fa
Use `type -q` instead of `which`.
9 years ago
Justin Hileman
ad36c7ada5
Add rudimentary VMWare vagrant support.
...
Drive-by: simplify existing virtualbox support a bit.
9 years ago
Justin Hileman
1f13fd0888
Add nerd fonts support.
...
Use better glyphs for Ruby and Python.
9 years ago
Justin Hileman
63cd4de4ba
Word.
9 years ago
Justin Hileman
6ca1ae9246
Get rid of the last $__bobthefish_* global!
9 years ago
Justin Hileman
c2b313408c
Fix $status regression.
9 years ago
Sasha Egorov
62c77644b7
Add stopping state
9 years ago
Justin Hileman
1a20ff7194
Improve python version detection.
9 years ago
Justin Hileman
845f5f4aa6
Make all the $__bobthefish_* variables local
...
… and don't shadow variables in __bobthefish segment functions.
This might fix #18 and #19 ?
9 years ago
Justin Hileman
ac7c5c913b
Add another space between virtualenv version and name
...
Fixes #16
9 years ago
Sasha Egorov
3e9ce36165
Typo in comment
9 years ago
Sasha Egorov
4190fa2e0d
Meet Vagrant
9 years ago
Justin Hileman
ad41beee1b
Update comments and readme for vi mode.
9 years ago
Oliver Schrenk
b094b1ec71
Early return
9 years ago
Oliver Schrenk
5314f8876a
Support hiding of vi segment for special mode
9 years ago
Oliver Schrenk
92691a3c4e
Move vi mode segment to front
9 years ago
Oliver Schrenk
af1e19724c
Support vi mode
9 years ago
Sasha Egorov
370d867cc7
Title and time
9 years ago
Justin Hileman
b1dff8ef68
Prevent false positives for 'untracked' empty directories.
...
Fixes a regression in #13
9 years ago
hurin
5b88c7303c
Fix extreme slowdown rendering git prompt with multiple untracked files
9 years ago
hurin
30c1ff9d8e
Speed up rbenv prompt computation
...
ref: https://github.com/sstephenson/rbenv/issues/804
9 years ago
Justin Hileman
7221fb8a32
Fix "expected a combining operator" regression.
...
See #10
9 years ago
Justin Hileman
bbb6a4645b
Cleanup: a couple superfluous setting.
9 years ago
Justin Hileman
336f1f1ce8
Cleanup: use named args for all sorts of current_dir
9 years ago
Justin Hileman
160bc9683e
Add $theme_avoid_ambiguous_glyphs
...
Allow users to avoid ambiguous width glyphs to prevent issues with guessing the width of multibyte characters.
For now, this just avoids `…`. We'll add some more if we run into them.
Fixes #10
9 years ago
Justin Hileman
13c35f3424
Allow disabling the title segments.
...
set -g theme_title_display_process yes
set -g theme_title_display_path no
See #11
9 years ago
Justin Hileman
00f5578311
Allow overriding the right prompt date format.
...
set -g theme_date_format "+%a %H:%M"
… or something like that :)
See #11
9 years ago
Tej Chajed
489a2eee3d
Fix ahead printing when both ahead and behind
...
Specifically, the awk parsing bails out early if we're ahead, even
though there may be later behind commits, resulting in a status of just
"+" when "±" would be correct.
9 years ago
Justin Hileman
cd15f6551c
Refactor "git ahead" logic:
...
* Revert removal of the less-verbose style
* Extract logic into a helper function
* Add a flag for enabling verbose style
* Remove a pile of unnecessary local variables
* Code style fixes
9 years ago
Johannes Schneider
e0d3abcaed
removed echo
9 years ago
Johannes Schneider
0d1f7868cd
improved ahead/behind showing
9 years ago
Justin Hileman
a18c9ab0fa
[bobthefish] allow git untracked files override
...
Showing untracked files can be (very) slow on large NFS mounts. Allow the user to disable the '...' output when there are untracked files, either globally via fish config:
set -g theme_display_git_untracked no
or locally via git repo config:
git config bash.showUntrackedFiles false
Fixes #434
10 years ago
Justin Hileman
d45898d4f0
Fix extraneous output from `type` on some fishes.
10 years ago
Liang Bo Wang
ce8ec8f220
Fix python version detection in theme bobthefish
...
Relax the python version matching, so `python` that symlinks to
either major versions (e.g. 2, 3) or minor versions (e.g. 2.7, 3.4)
can be properly detected.
Note that currently both pypy and pypy3 have same display glyph.
10 years ago
Justin Hileman
a08626d43f
Fix for bobthefish ruby version segment
...
… when there's no version to show.
Fixes #370
10 years ago
Justin Hileman
e766f6c003
[bobthefish] Default hg segment to off
...
… due to performance concerns.
See #258
See #262
10 years ago
Justin Hileman
2a2532b752
[bobthefish] One more hg speedup.
...
Send along the directory where we already found the .hg to throw hg a bone.
10 years ago
Justin Hileman
e17a6871b4
[bobthefish] One more cleanup.
10 years ago
Justin Hileman
c8853f6f61
[bobthefish] Default display configs to yes
10 years ago
Roman Inflianskas
81f2cce0fb
bobthefish: allow user disable segments
...
Conflicts:
themes/bobthefish/fish_prompt.fish
10 years ago
Justin Hileman
f108e89f1a
[bobthefish] Use @rominf's recursive hg to find hg root.
10 years ago
Roman Inflianskas
94f04d7260
bobthefish: hg: faster checking for hg repo (fix)
...
Conflicts:
themes/bobthefish/fish_prompt.fish
10 years ago
Justin Hileman
1c38607b13
[bobthefish] Use brackets instead of test.
10 years ago
Justin Hileman
08f8217cbe
[bobthefish] always use `command hg`
10 years ago
Justin Hileman
264b7cea78
[bobthefish] Use consistent sed delimiters.
10 years ago
Justin Hileman
1818ce9922
[bobthefish] Standardize stderr redirects.
10 years ago