fish: make homebrew functions write to the commandline
This commit is contained in:
parent
6a1bdec8ef
commit
3fdf7e6ee4
@ -9,8 +9,7 @@ function fbrew --description "Fuzzy homebrew"
|
||||
end
|
||||
|
||||
if test (count $inst_pkgs) -gt 0
|
||||
echo "Installing: $inst_pkgs"
|
||||
brew install $inst_pkgs
|
||||
commandline -r "brew install $inst_pkgs"
|
||||
end
|
||||
|
||||
functions --erase _fbrew_install
|
||||
@ -28,7 +27,7 @@ function fbrew --description "Fuzzy homebrew"
|
||||
end
|
||||
|
||||
if test (count $uninst_pkgs) -gt 0
|
||||
echo "Determining package dependencies..."
|
||||
echo "Reticulating splines..."
|
||||
|
||||
# Output is multiline with format "pkgname:" if no dependencies, otherwise "pkgname: dep1 dep2 dep3 ..."
|
||||
set --local brew_deps_installed (string collect (brew deps --installed))
|
||||
@ -86,14 +85,13 @@ function fbrew --description "Fuzzy homebrew"
|
||||
end
|
||||
end
|
||||
|
||||
if test (count $uninst_pkgs_final) -gt 0
|
||||
echo "Uninstalling: $uninst_pkgs_final"
|
||||
brew uninstall $uninst_pkgs_final
|
||||
end
|
||||
|
||||
if test (count $uninst_pkgs_leave) -gt 0
|
||||
echo "Will not uninstall: $uninst_pkgs_leave"
|
||||
end
|
||||
|
||||
if test (count $uninst_pkgs_final) -gt 0
|
||||
commandline -r "brew uninstall $uninst_pkgs_final"
|
||||
end
|
||||
end
|
||||
|
||||
functions --erase _fbrew_uninstall
|
||||
|
Loading…
x
Reference in New Issue
Block a user