diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2013-09-17 22:20:16 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2013-09-17 22:20:16 +0800 |
commit | 8df81f93c8556356ebae7139de4edca322e53ac5 (patch) | |
tree | b2d123bf94477a0c9b156a906f7dcbb4a76250eb /share/functions/__fish_print_packages.fish | |
parent | 95d5e55df25962282b3a9522400db0f4f227b413 (diff) |
__fish_print_packages: whitespace fix
Diffstat (limited to 'share/functions/__fish_print_packages.fish')
-rw-r--r-- | share/functions/__fish_print_packages.fish | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/share/functions/__fish_print_packages.fish b/share/functions/__fish_print_packages.fish index 95a822c7..96d1a6ed 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 |