From e02d505036aa3af27427b82a51c9e284b1914660 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Wed, 4 Mar 2020 23:41:40 -0500 Subject: [PATCH] fish: update homebrew function formatting --- fish/functions/fbrew.fish | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fish/functions/fbrew.fish b/fish/functions/fbrew.fish index 035537a..4b45d06 100644 --- a/fish/functions/fbrew.fish +++ b/fish/functions/fbrew.fish @@ -1,8 +1,8 @@ function fbrew --description "Fuzzy homebrew" - if test (count $argv) -eq 0 - echo "Usage: fbrew " - return 1 - end + if test (count $argv) -eq 0 + echo "Usage: fbrew " + return 1 + end switch $argv[1] case i install @@ -43,7 +43,7 @@ function _fbrew_uninstall # Accumulate uninst_pkgs and their transitive dependencies set --local uninst_pkgs_all $uninst_pkgs for bdi in $brew_deps_installed - set --local pkg (string split ':' $bdi | head -n 1) + set --local pkg (string split ':' $bdi | head -n 1) set --local deps (string split ' ' (string split ':' $bdi | tail -n +2)) if contains -- $pkg $uninst_pkgs for dep in $deps @@ -59,7 +59,7 @@ function _fbrew_uninstall # Don't uninstall packages that are still dependencies of other packages set --local uninst_pkgs_final $uninst_pkgs_all for bdi in $brew_deps_installed - set --local pkg (string split ':' $bdi | head -n 1) + set --local pkg (string split ':' $bdi | head -n 1) set --local deps (string split ' ' (string split ':' $bdi | tail -n +2)) if not contains -- $pkg $uninst_pkgs_all for dep in $deps