From 8df81f93c8556356ebae7139de4edca322e53ac5 Mon Sep 17 00:00:00 2001 From: David Adam Date: Tue, 17 Sep 2013 22:20:16 +0800 Subject: [PATCH] __fish_print_packages: whitespace fix --- share/functions/__fish_print_packages.fish | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/share/functions/__fish_print_packages.fish b/share/functions/__fish_print_packages.fish index 95a822c7b..96d1a6ed8 100644 --- a/share/functions/__fish_print_packages.fish +++ b/share/functions/__fish_print_packages.fish @@ -2,7 +2,7 @@ function __fish_print_packages # apt-cache is much, much faster than rpm, and can do this in real - # time. We use it if available. + # time. We use it if available. switch (commandline -tc) case '-**' @@ -22,18 +22,18 @@ function __fish_print_packages return end - # Pkg is fast on FreeBSD and provides versioning info which we want for - # installed packages - if begin - type -f pkg > /dev/null - and test (uname) = "FreeBSD" - end - pkg query "%n-%v" - return - end + # Pkg is fast on FreeBSD and provides versioning info which we want for + # installed packages + if begin + type -f pkg > /dev/null + and test (uname) = "FreeBSD" + end + pkg query "%n-%v" + return + end - # yum is slow, just like rpm, so go to the background + # yum is slow, just like rpm, so go to the background if type -f /usr/share/yum-cli/completion-helper.py >/dev/null # If the cache is less than six hours old, we do not recalculate it @@ -49,11 +49,11 @@ function __fish_print_packages end # Remove package version information from output and pipe into cache file - /usr/share/yum-cli/completion-helper.py list all -d 0 -C >$cache_file | cut -d '.' -f 1 | sed '1d' | sed '/^\s/d' | sed -e 's/$/'\t$package'/' & + /usr/share/yum-cli/completion-helper.py list all -d 0 -C >$cache_file | cut -d '.' -f 1 | sed '1d' | sed '/^\s/d' | sed -e 's/$/'\t$package'/' & end # Rpm is too slow for this job, so we set it up to do completions - # as a background job and cache the results. + # as a background job and cache the results. if type -f rpm >/dev/null