Last active
December 9, 2016 06:40
-
-
Save colstrom/b0f09b98c643de92d0f26cc57db28537 to your computer and use it in GitHub Desktop.
is-a-file: 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
| name = is-a-file | |
| author = Chris Olstrom | |
| license = MIT | |
| provides = fish/functions/is-a-file | |
| requires | |
| fish/builtin/end | |
| fish/builtin/function | |
| fish/builtin/test | |
| fish/functions/status-to-bool |
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 is-a-file --argument file | |
| test -f "$file" | |
| status-to-bool $status | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment