Skip to content

Instantly share code, notes, and snippets.

@colstrom
Last active December 9, 2016 06:40
Show Gist options
  • Select an option

  • Save colstrom/b0f09b98c643de92d0f26cc57db28537 to your computer and use it in GitHub Desktop.

Select an option

Save colstrom/b0f09b98c643de92d0f26cc57db28537 to your computer and use it in GitHub Desktop.
is-a-file: sugar for test with string/bool output
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
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