oh-my-fish/lib/available.fish

10 lines
206 B
Fish
Raw Normal View History

# 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