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