Re: script to reformat 'pacman -Ss' output into 2 readable columns (prevents blindness)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Sweet script, it always bothered me the way pacman -Ss formatted its output.
The check you do for zenity has a minor problem, though. Instead of "if
which zenity > /dev/null..." it needs to be "if which zenity &>
/dev/null...", the former doesn't redirect error output.

Anyway, very well done, thanks for the script!

Jason

On Fri, Aug 6, 2010 at 12:48 AM, David C. Rankin <
drankinatty@xxxxxxxxxxxxxxxxxx> wrote:

> On 08/05/2010 11:19 PM, Loui Chang wrote:
>
>>        or with the '-d' option for semi-doublespace:
>>>
>> This should definitely be the default. Otherwise I may go walleyed.
>>
>>
> You are correct sir! I guess the only reason it wasn't the default is that
> I did the script on my laptop so vertical space was at a premium :p
>
> I have to rework the options anyway to add an option to disable the zenity
> list so I'll redo the line spacing default as well.
>
> Right now I have the script testing for zenity with which and then
> displaying the zenity --list by default if zenity is installed. What's your
> vote? Should zenity be off by default and then enabled with an option?. It
> is light enough to work well even over ssh connections, so my thought was to
> just leave it enabled by default and add a flag to disable it if it wasn't
> wanted......
>
>
> --
> David C. Rankin, J.D.,P.E.
> Rankin Law Firm, PLLC
> 510 Ochiltree Street
> Nacogdoches, Texas 75961
> Telephone: (936) 715-9333
> Facsimile: (936) 715-9339
> www.rankinlawfirm.com
>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux