oh-my-fish/lib/available.fish

10 lines
188 B
Fish
Raw Normal View History

# 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