Created
May 9, 2015 00:02
-
-
Save geowarin/5d4f5a7ce433b949df1d to your computer and use it in GitHub Desktop.
Utility functions to see if binaries are found in path with fish shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function are_installed | |
for cmd in $argv; | |
is_installed $cmd | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function is_installed | |
return (which $argv > /dev/null) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment