mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-15 20:53:44 +00:00
feat(config): fish configs
This commit is contained in:
14
config/fish/functions/has_app.fish
Normal file
14
config/fish/functions/has_app.fish
Normal file
@@ -0,0 +1,14 @@
|
||||
# @halostatue/fish-macos/functions/has_app.fish:v7.0.0
|
||||
|
||||
function has_app --description 'Returns true if the named application exists'
|
||||
# Suppress these flags being passed to __macos_app_find
|
||||
argparse a/all q/quiet -- $argv
|
||||
or return 1
|
||||
|
||||
if not set --query argv[1]
|
||||
echo >&2 Usage: (status function) APPNAME...
|
||||
return 1
|
||||
end
|
||||
|
||||
__macos_app_find --exact --quiet $argv
|
||||
end
|
||||
Reference in New Issue
Block a user