Commit Graph

68 Commits

Author SHA1 Message Date
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
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.
2015-02-22 18:17:33 +08:00
Justin Hileman
a08626d43f Fix for bobthefish ruby version segment
… when there's no version to show.

Fixes #370
2015-02-10 14:02:06 -08:00
Justin Hileman
e766f6c003 [bobthefish] Default hg segment to off
… due to performance concerns.

See #258
See #262
2014-11-28 19:41:55 +11:00
Justin Hileman
2a2532b752 [bobthefish] One more hg speedup.
Send along the directory where we already found the .hg to throw hg a bone.
2014-11-28 19:41:55 +11:00
Justin Hileman
e17a6871b4 [bobthefish] One more cleanup. 2014-11-28 19:41:54 +11:00
Justin Hileman
c8853f6f61 [bobthefish] Default display configs to yes 2014-11-28 19:41:54 +11:00
Roman Inflianskas
81f2cce0fb bobthefish: allow user disable segments
Conflicts:
	themes/bobthefish/fish_prompt.fish
2014-11-28 19:41:54 +11:00
Justin Hileman
f108e89f1a [bobthefish] Use @rominf's recursive hg to find hg root. 2014-11-28 19:41:54 +11:00
Roman Inflianskas
94f04d7260 bobthefish: hg: faster checking for hg repo (fix)
Conflicts:
	themes/bobthefish/fish_prompt.fish
2014-11-28 19:41:54 +11:00
Justin Hileman
1c38607b13 [bobthefish] Use brackets instead of test. 2014-11-28 19:41:54 +11:00
Justin Hileman
08f8217cbe [bobthefish] always use command hg 2014-11-28 19:41:54 +11:00
Justin Hileman
264b7cea78 [bobthefish] Use consistent sed delimiters. 2014-11-28 19:41:54 +11:00
Justin Hileman
1818ce9922 [bobthefish] Standardize stderr redirects. 2014-11-28 19:41:54 +11:00
Justin Hileman
3bdbfe8ee9 [bobthefish] much cleaner git "ahead" flag. 2014-11-28 19:41:54 +11:00
Justin Hileman
5ab89f663c [bobthefish] Add support for rbenv and RVM 2014-11-28 19:41:54 +11:00
Justin Hileman
52e7b2bae7 [bobthefish] Simplify bold segments.
Add support for --bold (and --underline) to the __bobthefish_start_segment function.
2014-11-28 19:41:53 +11:00
Justin Hileman
abed16f3aa [bobthefish] Better (faster, stronger) SCM segments
* Show the closest parent repo if $PWD is in both an hg and git repo.
 * Only find the repo root once per SCM, not two or three times :)
2014-11-28 19:41:53 +11:00
Justin Hileman
623d162f2b [bobthefish] More virtualenv tweaks
* Inline a one-line method that's called one place
 * Make sure __bobthecow_virtualenv_python_version doesn't fail if python isn't a symlink.
 * Add a visual segment indicator after python version glyph.
2014-11-28 19:41:53 +11:00
Justin Hileman
8ac71fb43f [bobthefish] Update virtualenv segment colors…
remove some additional unnecessary complication.
2014-11-28 19:41:53 +11:00