1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

Fix (plugins debian and ubuntu): apt-history list using zgrep (#5695)

Changing from `zcat` to `zgrep` because some `zcat` implementations do not work
if the file is not compressed.
This commit is contained in:
Rarylson Freitas 2016-12-08 18:49:58 -02:00 committed by Marc Cornellà
parent 937a7f66ef
commit 26aae6b583
2 changed files with 2 additions and 2 deletions

View file

@ -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:"

View file

@ -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:"