zakariaGatter/xbps-hist

Question

Ved-un opened this issue · 5 comments

Hello.
I like your script, but could you tell me how to change your script so that instead of this output :
2022-03-31 07:41:51 Installed base-system successfully (rootdir: /).

there was output with the version number and without the unnecessary "successfully (rootdir: /)."
2022-03-31 07:41:51 Installed base-system-0.114_1

thank you for using xbps-hist
for your request you need to change :

FROM

pkg_name=${line[7]%-*}
pkg_name=${pkg_name:1}

TO

pkg_name=${line[7]:1:-1}

and you need to change all the lines :

FROM

$date_time ${line[6]}, $pkg_name, ${line[8]}, ${line[9]} ${line[10]}

TO

$date_time ${line[6]}, $pkg_name

before you go star this repo ⭐

i hope you like my project

Wow, thank you so much!

And how can you make the output the color of the words - Installed Removed Updated?
how it's done in paclog (Arch) - https://github.com/xfgusta/paclog

img-01

its look beautiful but ill work on it another time

Thanks.
It's not about beauty, it's just so convenient to track changes.

Thanks to your feedback im thinking of adding options for short and long listing form