oh-my-fish/lib/available.fish
2015-08-27 00:20:13 +09:00

10 lines
188 B
Fish

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