From 327acf1e2746c5838e5e71817886ebd5b301e667 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Sun, 17 Apr 2022 20:44:04 -0400 Subject: [PATCH] fish: fix broken calls to commandline Reference: - https://github.com/fish-shell/fish-shell/issues/8807 --- fish/functions/fbrew.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fish/functions/fbrew.fish b/fish/functions/fbrew.fish index 5cb0908..0437ea1 100644 --- a/fish/functions/fbrew.fish +++ b/fish/functions/fbrew.fish @@ -9,8 +9,8 @@ function fbrew --description "Fuzzy homebrew" end if test (count $inst_pkgs) -gt 0 - commandline -r "brew install $inst_pkgs" - commandline -f execute + echo "Installing: $inst_pkgs" + brew install $inst_pkgs end functions --erase _fbrew_install @@ -21,7 +21,7 @@ function fbrew --description "Fuzzy homebrew" set --local uninst_pkgs $argv # Don't uninstall these packages - set --local locked_pkgs node python python@3.8 python@3.9 + set --local locked_pkgs node python python@3.8 python@3.9 python@3.10 if test (count $uninst_pkgs) -eq 0 set uninst_pkgs (brew leaves | eval "fzf --multi --prompt='[brew:uninstall] '") @@ -91,8 +91,8 @@ function fbrew --description "Fuzzy homebrew" end if test (count $uninst_pkgs_final) -gt 0 - commandline -r "brew uninstall $uninst_pkgs_final" - commandline -f execute + echo "Uninstalling: $uninst_pkgs_final" + #brew uninstall $uninst_pkgs_final end end