Skip to content

Commit

Permalink
Fix (plugins debian and ubuntu): apt-history list using zgrep (oh…
Browse files Browse the repository at this point in the history
…myzsh#5695)

Changing from `zcat` to `zgrep` because some `zcat` implementations do not work
if the file is not compressed.
  • Loading branch information
rarylson authored and gsemet committed Dec 9, 2016
1 parent f17a5e0 commit 04117e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/debian/debian.plugin.zsh
Expand Up @@ -192,7 +192,7 @@ apt-history () {
awk '{print $4"="$5}'
;;
list)
zcat $(ls -rt /var/log/dpkg*)
zgrep --no-filename '' $(ls -rt /var/log/dpkg*)
;;
*)
echo "Parameters:"
Expand Down
2 changes: 1 addition & 1 deletion plugins/ubuntu/ubuntu.plugin.zsh
Expand Up @@ -108,7 +108,7 @@ apt-history () {
awk '{print $4"="$5}'
;;
list)
zcat $(ls -rt /var/log/dpkg*)
zgrep --no-filename '' $(ls -rt /var/log/dpkg*)
;;
*)
echo "Parameters:"
Expand Down

0 comments on commit 04117e2

Please sign in to comment.