2021-01-26 04:34:15 +03:00
|
|
|
# RUN: %fish %s
|
|
|
|
|
2020-05-09 08:48:35 +03:00
|
|
|
function _status
|
2021-10-01 07:18:16 +03:00
|
|
|
set -lx _tide_status $status
|
|
|
|
set -lx _tide_pipestatus $pipestatus
|
2020-05-22 00:58:09 +03:00
|
|
|
_tide_decolor (_tide_item_status)
|
2020-05-06 19:42:52 +03:00
|
|
|
end
|
|
|
|
|
2021-10-15 04:09:55 +03:00
|
|
|
set -lx tide_status_icon ✔
|
|
|
|
set -lx tide_status_icon_failure ✘
|
2020-07-12 02:45:23 +03:00
|
|
|
|
2021-04-25 03:42:12 +03:00
|
|
|
# Without character
|
2021-11-25 20:47:53 +03:00
|
|
|
set -lx _tide_left_items
|
2020-07-09 04:37:47 +03:00
|
|
|
|
2021-01-26 04:34:15 +03:00
|
|
|
true
|
2021-03-08 08:43:39 +03:00
|
|
|
_status # CHECK: ✔
|
2021-01-26 04:34:15 +03:00
|
|
|
|
|
|
|
false
|
2021-03-08 08:43:39 +03:00
|
|
|
_status # CHECK: ✘ 1
|
2021-01-26 04:34:15 +03:00
|
|
|
|
|
|
|
true | false
|
|
|
|
_status # CHECK: ✘ 0|1
|
|
|
|
|
|
|
|
true | true
|
2021-03-08 08:43:39 +03:00
|
|
|
_status # CHECK: ✔
|
2021-01-26 04:34:15 +03:00
|
|
|
|
|
|
|
false | true
|
|
|
|
_status # CHECK: ✔ 1|0
|
|
|
|
|
|
|
|
false | false
|
|
|
|
_status # CHECK: ✘ 1|1
|
2020-07-09 04:37:47 +03:00
|
|
|
|
2021-04-25 03:42:12 +03:00
|
|
|
# With character
|
2021-11-25 20:47:53 +03:00
|
|
|
set -lx _tide_left_items character
|
2020-07-09 04:37:47 +03:00
|
|
|
|
2021-01-26 04:34:15 +03:00
|
|
|
true
|
2021-03-08 08:43:39 +03:00
|
|
|
_status # CHECK:
|
2021-01-26 04:34:15 +03:00
|
|
|
|
|
|
|
false
|
2021-03-08 08:43:39 +03:00
|
|
|
_status # CHECK:
|
2021-01-26 04:34:15 +03:00
|
|
|
|
|
|
|
true | false
|
|
|
|
_status # CHECK: ✘ 0|1
|
|
|
|
|
|
|
|
true | true
|
2021-03-08 08:43:39 +03:00
|
|
|
_status # CHECK:
|
2021-01-26 04:34:15 +03:00
|
|
|
|
|
|
|
false | true
|
|
|
|
_status # CHECK: ✔ 1|0
|
|
|
|
|
|
|
|
false | false
|
|
|
|
_status # CHECK: ✘ 1|1
|
2021-03-26 17:38:10 +03:00
|
|
|
|
|
|
|
# Check that not command works
|
|
|
|
not true | false
|
|
|
|
_status # CHECK: ✔ 0|1
|
|
|
|
|
|
|
|
not false | true
|
|
|
|
_status # CHECK: ✘ 1|0
|