-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a new icon for character when there's a failure
- Loading branch information
1 parent
fbca958
commit 04166dd
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# RUN: %fish %s | ||
_tide_parent_dirs | ||
|
||
function _character | ||
set -lx _tide_status $status | ||
set -lx _tide_pipestatus $pipestatus | ||
_tide_decolor (_tide_item_character) | ||
end | ||
|
||
set -lx tide_character_icon_failure ✘ | ||
|
||
true | ||
_character # CHECK: ❯ | ||
|
||
false | ||
_character # CHECK: ✘ | ||
|
||
true | false | ||
_character # CHECK: ✘ | ||
|
||
true | true | ||
_character # CHECK: ❯ | ||
|
||
false | true | ||
_character # CHECK: ❯ | ||
|
||
false | false | ||
_character # CHECK: ✘ | ||
|
||
# Check that not command works | ||
not true | false | ||
_character # CHECK: ❯ | ||
|
||
not false | true | ||
_character # CHECK: ✘ |