mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-26 18:31:07 +08:00
10 lines
188 B
Fish
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
|