fish-shell/share/tools/web_config/sample_prompts
Johannes Altmanninger 55bc6a27c6 Make prompts forward compatible with fish 3.1.2 by passing locally exported variable
Commit 5d135d555 (prompts: fix pipestatus for jobs prefixed with "not")
introduced a backwards compatibility hack about adding an optional argument
to __fish_print_pipestatus. This hack would break downgrading to fish 3.1.2
if the user copied the new prompt to their config - they would get a backtrace
on every prompt which is arguably worse than the patch's minor improvement.

This does away with the error trace - old fish just won't show the fancy
new pipestatus on `not true`.

Implemented by passing the last $status as the poor man's kwarg, which works
since 3.1.0 (9b86d5dd1 Export all local exported variables in a new scope).

The prompts don't work with fish 3.0.0 or older; downgrading does not seem
too important in general but I think this patch is an okay simplification.
2020-09-05 09:58:55 +02:00
..
acidhub.fish Use set -l to force use of a local variable 2020-05-15 08:25:07 +02:00
classic.fish prompts: guard against missing fish_is_root_user 2020-09-05 09:48:47 +02:00
classic_status.fish Make prompts forward compatible with fish 3.1.2 by passing locally exported variable 2020-09-05 09:58:55 +02:00
classic_vcs.fish Make prompts forward compatible with fish 3.1.2 by passing locally exported variable 2020-09-05 09:58:55 +02:00
debian_chroot.fish prompts: guard against missing fish_is_root_user 2020-09-05 09:48:47 +02:00
informative.fish Make prompts forward compatible with fish 3.1.2 by passing locally exported variable 2020-09-05 09:58:55 +02:00
informative_vcs.fish Make prompts forward compatible with fish 3.1.2 by passing locally exported variable 2020-09-05 09:58:55 +02:00
justadollar.fish lint: fish_indent all sample prompts 2016-11-01 19:19:45 -07:00
lonetwin.fish Stop caching set_color output in rest of prompts 2019-04-09 03:40:09 -07:00
minimalist.fish lint: fish_indent all sample prompts 2016-11-01 19:19:45 -07:00
nim.fish prompts: guard against missing fish_is_root_user 2020-09-05 09:48:47 +02:00
pythonista.fish sample prompts: use $USER instead of (whoami) 2019-09-18 23:35:16 -07:00
robbyrussell.fish Use set -l to force use of a local variable 2020-05-15 08:25:07 +02:00
screen_savvy.fish sample prompts: use $USER instead of (whoami) 2019-09-18 23:35:16 -07:00
sorin.fish Reindent functions to remove useless quotes 2020-03-09 19:46:43 +01:00
terlar.fish sample prompts: use $USER instead of (whoami) 2019-09-18 23:35:16 -07:00