Last active
December 9, 2016 06:48
-
-
Save colstrom/b8705f65bf10deb9bd57a5ee13d1f23f to your computer and use it in GitHub Desktop.
exists.fish: sugar for test with string/bool output
This file contains hidden or 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
| function exists -a target | |
| test -e "$target" | |
| status-to-bool $status | |
| end |
This file contains hidden or 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
| name = exists | |
| author = Chris Olstrom | |
| license = MIT | |
| provides = fish/functions/exists | |
| requires | |
| fish/builtin/end | |
| fish/builtin/function | |
| fish/builtin/test | |
| fish/functions/status-to-bool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment