fish-shell/share
Fabian Homborg 05ef157757 functions/fish_git_prompt: Let helper functions return useful status
If you use these to figure out if there _are_ staged files, or dirty
or whatever, you currently need to check the output, which relies on
the configured character.

Instead, we let them also return a useful status.
Notably, this is *not* simply the status of the git call.

__fish_git_prompt_X returns 0 if the repo is X.

This works for untracked, but the "diff" things return 1 if there is a
diff, so we invert the status for them.

See #5748.

[ci skip]
2019-03-19 10:11:37 +01:00
..
completions cower doesn't exist anymore, completions dropped 2019-03-17 10:55:01 +01:00
functions functions/fish_git_prompt: Let helper functions return useful status 2019-03-19 10:11:37 +01:00
groff workaround broken groff man page config 2016-10-19 13:43:04 -07:00
tools add $pipestatus to classic_vcs.fish prompt 2019-03-04 18:25:18 +00:00
__fish_build_paths.fish.in Rename "snippets" to "conf" internally, and document them as snippets 2016-04-06 09:33:09 +08:00
config.fish Clean up uvar initialization with a wrapper function 2019-02-14 17:09:16 -08:00
lynx.lss Install custom LSS script to /usr/local/share/fish on make install 2017-09-26 14:31:11 -05:00