From 5df597e529714bf108ef97326ef17ed165f83f1f Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Thu, 3 Apr 2025 10:51:13 +0200 Subject: is-installed function for brew/macos modified: conf.d/02platform.fish --- conf.d/02platform.fish | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'conf.d/02platform.fish') 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 -- cgit v1.3.1