oh-my-fish/lib/available.fish
Bruno Pinto 30ab05445d Add require function to support plugin dep
In order to support dependency between plugins a function called
`require` has been added.
2015-10-02 21:35:06 +01:00

10 lines
206 B
Fish

# SYNOPSIS
# available [name]
#
# OVERVIEW
# Check if a function or program is available.
function available -a name -d "Check if a function or program is available."
type "$name" ^/dev/null >&2
end