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
|
end
|
||||||
|
|
||||||
if test (count $inst_pkgs) -gt 0
|
if test (count $inst_pkgs) -gt 0
|
||||||
echo "Installing: $inst_pkgs"
|
commandline -r "brew install $inst_pkgs"
|
||||||
brew install $inst_pkgs
|
|
||||||
end
|
end
|
||||||
|
|
||||||
functions --erase _fbrew_install
|
functions --erase _fbrew_install
|
||||||
@ -28,7 +27,7 @@ function fbrew --description "Fuzzy homebrew"
|
|||||||
end
|
end
|
||||||
|
|
||||||
if test (count $uninst_pkgs) -gt 0
|
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 ..."
|
# Output is multiline with format "pkgname:" if no dependencies, otherwise "pkgname: dep1 dep2 dep3 ..."
|
||||||
set --local brew_deps_installed (string collect (brew deps --installed))
|
set --local brew_deps_installed (string collect (brew deps --installed))
|
||||||
@ -86,14 +85,13 @@ function fbrew --description "Fuzzy homebrew"
|
|||||||
end
|
end
|
||||||
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
|
if test (count $uninst_pkgs_leave) -gt 0
|
||||||
echo "Will not uninstall: $uninst_pkgs_leave"
|
echo "Will not uninstall: $uninst_pkgs_leave"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if test (count $uninst_pkgs_final) -gt 0
|
||||||
|
commandline -r "brew uninstall $uninst_pkgs_final"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
functions --erase _fbrew_uninstall
|
functions --erase _fbrew_uninstall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user