fish-shell/share/tools/web_config
Johannes Altmanninger 5d135d5556 prompts: fix pipestatus for jobs prefixed with "not"
6902459566 was an attempt to not print
$status twice in the prompt. As a result we print $pipestatus but
not $status, which /usually/ is the same as $pipestatus[-1] --- unless
the builtin "not" is used, which inverts the $status of a job (it does
not alter $pipestatus).

As a result, the default prompt prints unexpected status codes:

	~ > not false
	~ [1]> not true
	~ > not true | true
	~ > not false | false
	~ [1|1]>

This commit reintroduces printing of $status after $pipestatus, but only
if it is different from $pipestatus[-1].
Additionally, we only print anything at all if the $status is nonzero,
to avoid confusing output on `not false | false`

	~ > not false
	~ > not true
	~ [0] 1> not true | true
	~ [0|0] 1> not false | false
	~ >

I think this is closer to users' expectations for those cases; they should
not have to think about this implementation detail of the not-statement.
2020-02-06 01:43:17 +01:00
..
js Set base16 colors for operator, escape, and match 2020-01-18 12:16:19 -08:00
partials change href attribute to ng-href 2019-10-26 18:12:44 +02:00
sample_prompts prompts: fix pipestatus for jobs prefixed with "not" 2020-02-06 01:43:17 +01:00
delete.png Lossless recompress of images with pngcrush+zopfli 2016-06-18 10:03:26 -07:00
favicon.png Add favicon for web config 2015-07-12 15:06:56 -07:00
fishconfig.css Fix fish_config rendering brights as normal on prompt previews 2019-01-21 13:59:36 -08:00
index.html webconfig: import angular-sanitize module 2017-05-03 08:37:27 +10:00
webconfig.py webconfig: Use tempfile instead of ~/.cache (#6522) 2020-01-23 19:52:26 +01:00