mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-28 02:06:30 +03:00
14 lines
519 B
Fish
14 lines
519 B
Fish
@mesg '------------status------------'
|
|
|
|
function _status
|
|
set -g _tide_last_pipestatus $pipestatus
|
|
set -g _tide_last_status $status
|
|
_tide_decolor (_tide_item_status)
|
|
end
|
|
|
|
@test 'true' (true; _status) -z
|
|
@test 'false' (false; _status) -z
|
|
@test 'true|false' (true|false; _status) = "$tide_status_failure_icon 0|1 "
|
|
@test 'true|true' (true|true; _status) -z
|
|
@test 'false|true' (false|true; _status) = "$tide_status_success_icon 1|0 "
|
|
@test 'false|false' (false|false; _status) = "$tide_status_failure_icon 1|1 " |