Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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