diff options
| -rw-r--r-- | conf.d/02platform.fish | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/conf.d/02platform.fish b/conf.d/02platform.fish index 1cd3561..56d8069 100644 --- a/conf.d/02platform.fish +++ b/conf.d/02platform.fish @@ -138,6 +138,10 @@ if status is-interactive alias pkgadd 'brew install' alias pkgrm 'brew uninstall' alias pkgupd 'brew update ; echo ; brew upgrade' + + function is-installed + brew list -1 | grep -q "^$argv\$" + end end # If we have MacPorts |
