Commit Graph

87 Commits

Author SHA1 Message Date
Justin Hileman
aa83e34148 Use command for a few more things that get overridden 2016-03-30 13:24:51 -07:00
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.
2016-03-29 23:55:58 -07:00
Justin Hileman
3db31f0c52 Faster! 2016-03-11 13:28:47 -08:00
Justin Hileman
89ab00e768 Use local variables for teh rubies. 2016-03-11 11:24:46 -08:00
Justin Hileman
daa9025183 Merge pull request #24 from LambdaLord/master
Replace some color constants with existing variables
2016-03-10 22:45:25 -08:00
Justin Hileman
3e72ddf0f9 Merge pull request #25 from paxy97/error_code
Add show error code option
2016-03-10 22:44:14 -08:00
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.
2016-03-09 16:54:32 -08:00
Pavle Portic
3d89a0a3fe Update README 2016-03-03 12:12:09 +01:00
Pavle Portic
0ab6f79efe Add show error code option 2016-03-03 03:40:04 +01:00
LambdaLord
7c49324381 Revert unnecessary name change 2016-03-02 06:39:59 +00:00
LambdaLord
ed0eb02dfb Quick rename for new variable 2016-03-02 06:04:16 +00:00
LambdaLord
10170cb856 Replaced some color values with new variable 2016-03-02 05:44:05 +00:00
LambdaLord
b137eb1bdc Replace some constants with existing greys 2016-03-02 05:23:45 +00:00
Johnny Robeson
b3e2982abf fix powerline patched fonts links 2016-02-20 02:10:48 -05:00
Justin Hileman
47eace4182 Fix some vagrant segment copypasta 2016-02-19 10:06:52 -08:00
Justin Hileman
29d78ebaf3 Clean up a bunch of redirects, make 'em fishier. 2016-02-19 07:53:59 -08:00
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.
2016-02-19 07:53:38 -08:00
Justin Hileman
a9cc3400fa Use type -q instead of which. 2016-02-18 23:16:08 -08:00
Justin Hileman
ad36c7ada5 Add rudimentary VMWare vagrant support.
Drive-by: simplify existing virtualbox support a bit.
2016-02-18 23:16:08 -08:00
Justin Hileman
1f13fd0888 Add nerd fonts support.
Use better glyphs for Ruby and Python.
2016-02-18 22:00:31 -08:00
Justin Hileman
63cd4de4ba Word. 2016-02-03 23:13:57 -08:00
Justin Hileman
6ca1ae9246 Get rid of the last $__bobthefish_* global! 2016-02-03 23:10:57 -08:00
Justin Hileman
c2b313408c Fix $status regression. 2016-02-03 23:09:57 -08:00
Sasha Egorov
62c77644b7 Add stopping state 2016-02-02 00:24:49 +04:00
Justin Hileman
1a20ff7194 Improve python version detection. 2016-01-25 08:00:29 -08:00
Justin Hileman
845f5f4aa6 Make all the $__bobthefish_* variables local
… and don't shadow variables in __bobthefish segment functions.

This might fix #18 and #19?
2016-01-25 07:06:48 -08:00
Justin Hileman
ac7c5c913b Add another space between virtualenv version and name
Fixes #16
2016-01-14 23:25:12 -08:00
Sasha Egorov
3e9ce36165 Typo in comment 2015-12-16 22:18:18 +04:00
Sasha Egorov
4190fa2e0d Meet Vagrant 2015-12-16 22:12:21 +04:00
Justin Hileman
ad41beee1b Update comments and readme for vi mode. 2015-11-22 07:48:49 -08:00
Oliver Schrenk
b094b1ec71 Early return 2015-11-22 12:53:49 +01:00
Oliver Schrenk
5314f8876a Support hiding of vi segment for special mode 2015-11-22 12:35:54 +01:00
Oliver Schrenk
92691a3c4e Move vi mode segment to front 2015-11-22 12:35:54 +01:00
Oliver Schrenk
af1e19724c Support vi mode 2015-11-22 12:35:54 +01:00
Sasha Egorov
370d867cc7 Title and time 2015-11-11 14:04:36 +04:00
Justin Hileman
b1dff8ef68 Prevent false positives for 'untracked' empty directories.
Fixes a regression in #13
2015-10-26 07:16:21 -07:00
hurin
5b88c7303c Fix extreme slowdown rendering git prompt with multiple untracked files 2015-10-26 18:20:09 +08:00
hurin
30c1ff9d8e Speed up rbenv prompt computation
ref: https://github.com/sstephenson/rbenv/issues/804
2015-10-26 18:20:05 +08:00
Justin Hileman
7221fb8a32 Fix "expected a combining operator" regression.
See #10
2015-10-14 08:23:34 -07:00
Justin Hileman
bbb6a4645b Cleanup: a couple superfluous setting. 2015-10-13 21:15:59 -07:00
Justin Hileman
336f1f1ce8 Cleanup: use named args for all sorts of current_dir 2015-10-13 20:40:44 -07:00
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
2015-10-13 20:34:35 -07:00
Justin Hileman
13c35f3424 Allow disabling the title segments.
set -g theme_title_display_process yes
    set -g theme_title_display_path no

See #11
2015-10-13 14:19:57 -07:00
Justin Hileman
00f5578311 Allow overriding the right prompt date format.
set -g theme_date_format "+%a %H:%M"

… or something like that :)

See #11
2015-10-13 14:18:48 -07:00
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.
2015-06-26 11:01:02 -04:00
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
2015-06-24 14:51:44 -07:00
Johannes Schneider
e0d3abcaed
removed echo 2015-06-17 15:30:57 +02:00
Johannes Schneider
0d1f7868cd
improved ahead/behind showing 2015-06-17 12:54:02 +02:00
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
2015-04-24 10:59:50 -07:00
Justin Hileman
d45898d4f0 Fix extraneous output from type on some fishes. 2015-04-23 10:31:52 -07:00