fish: fix broken calls to commandline
Reference: - https://github.com/fish-shell/fish-shell/issues/8807
This commit is contained in:
parent
2c4387a870
commit
327acf1e27
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user