You are not logged in.
The -Ss output compared to "some other distros" is horrible.
I'm not dissing pacman here, but the readability could be improved! So I made a very simple hack to have pacman output the descriptions in green when searching, which helps alot.
I figured someone else might like colored -Ss too, so here it goes:
PKGBUILD
One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.
Offline
Uhh... Forgive me for being dense, but how does a colored -Ss output help you?
Offline
How it helps me? It helps me actually find what I want from the -Ss output instead of getting a headache when trying to glance over the output.
One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.
Offline
i guess it could be prettier - you can always file a feature request on the bug tracker but you'll have to put trivial on the importance....
Offline
I agree, it's not life threatening but the readability is much better. I'm not really fussed either way though, I installed srcpac and was less than impressed no so pacman wrappers for me anymore
Offline
How it helps me? It helps me actually find what I want from the -Ss output instead of getting a headache when trying to glance over the output.
Are you tired to use grep?
"Pacman -Ss gnome | grep ogg" f.e. shall give you all gnome packages, that include "ogg" in its name or description.
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
citral wrote:How it helps me? It helps me actually find what I want from the -Ss output instead of getting a headache when trying to glance over the output.
Are you tired to use grep?
"Pacman -Ss gnome | grep ogg" f.e. shall give you all gnome packages, that include "ogg" in its name or description.
But grep doesnt really work that well.
If the program has the word in its description and not in its name, you only get the description, which may as well be french when its not linked to the name of the program
iphitus
Offline
... shocked, right you are ...
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
Well, according to dibble, I'm of "the camp that believes anything scriptable in less than 10 lines shouldn't be a feature" (heh), so take this with a grain of salt...
it wouldn't be hard at all to make a little filter (note: this is the *nix philosophy) that colorizes the output... something like [pacman -Ss foo | pac-color]
hell, it's even less work using something like csed from http://colorifer.sourceforge.net/
Offline
Pink Chick wrote:Are you tired to use grep?
"Pacman -Ss gnome | grep ogg" f.e. shall give you all gnome packages, that include "ogg" in its name or description.
But grep doesnt really work that well.
If the program has the word in its description and not in its name, you only get the description, which may as well be french when its not linked to the name of the program
iphitus
$ pacman -Ss "something" | grep "/" | grep "something"
will give programs containing "something" in their names
I wouldn't mind some coloured output. Piping the output through something to colorize it is... a nice idea.. from a dev's point of view. Not sure how thrilled the normal users would be.
:: / my web presence
Offline
Sure, I could've mangled the output of -Ss. I was just under the impression that I wasn't the only one annoyed by the hard to read output.
One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.
Offline
Let's talk about colors then. I'd prefer pink, of course.
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
anything that increases readability (and therefore usability) should be encouraged and embraced, imo. especially if it's something that's easy to implement.
Offline
As far as I can remember, some users already provided some patches to colorize pacman...
Offline
This seems to work.
echo -e "$(pacman -Ss gtk2
| sed s/custom\/.*/\\033[0;33m&\\033[0;37m/g
| sed s/current\/.*/\\033[0;31m&\\033[0;37m/g
| sed s/extra\/.*/\\033[0;32m&\\033[0;37m/g
| sed s/community\/.*/\\033[0;35m&\\033[0;37m/g)"
;-)
Offline
This seems to work.
echo -e "$(pacman -Ss gtk2 | sed s/custom\/.*/\\033[0;33m&\\033[0;37m/g | sed s/current\/.*/\\033[0;31m&\\033[0;37m/g | sed s/extra\/.*/\\033[0;32m&\\033[0;37m/g | sed s/community\/.*/\\033[0;35m&\\033[0;37m/g)"
;-)
nice... now to extend it...
#!/bin/bash
# filename: pacsearch
echo -e "$(pacman -Ss $@ | sed
s/custom\/.*/\\033[0;33m&\\033[0;37m/g
| sed s/current\/.*/\\033[0;31m&\\033[0;37m/g
| sed s/extra\/.*/\\033[0;32m&\\033[0;37m/g
| sed s/community\/.*/\\033[0;35m&\\033[0;37m/g)
then chmod +x it and run "pacsearch gtk" - bam
Offline
Impressive. A mass of \\\////and *****033 ... does fine art
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
I think this is great. Even though it's not vital to have colored output, it does make it easier to read, as well as looking better. A design whore like myself appreciates this kind of stuff!
It's also better to have colors because it's faster to recognize whatever packages you want without using grep. IMHO.
Offline
phrakture: a tip with sed, you dont have to use s/blah/boo/ you can use other identifiers such as s@blah@boo@ so that you dont have to escape every slash. Also makes it slightly tidier and more readable than escaping everything.
Offline
phrakture: a tip with sed, you dont have to use s/blah/boo/ you can use other identifiers such as s@blah@boo@ so that you dont have to escape every slash. Also makes it slightly tidier and more readable than escaping everything.
yeah, I know - but it wasn't my sed script...Vinny wrote it and I just made it accept arguments...
Offline
I like / because I don't need to press SHIFT
Offline
The scripts posted above are nice, but they don't color repos that you don't predefine. This fixes that FWIW.
In my .bashrc I have:
alias pacs="pacsearch"
pacsearch () {
echo -e "$(pacman -Ss $@ | sed
-e 's#current/.*#\033[0;31m&\033[0;37m#g'
-e 's#extra/.*#\033[0;32m&\033[0;37m#g'
-e 's#community/.*#\033[0;35m&\033[0;37m#g'
-e 's#^.*/.* .*#\033[0;36m&\033[0;37m#g' )"
}
One of the main causes of the fall of the Roman Empire was that, lacking zero,
they had no way to indicate successful termination of their C programs.
Offline
good script for wiki, once you guys finish hacking each other's work. Actually, maybe the wiki would be a good place to hack it.
I love tihs idea. We have colour initscripts, what's wrong with colour pacman!?
Dusty
Offline
Not to mention makepkg already has color
Offline
This seems to work.
echo -e "$(pacman -Ss gtk2 | sed s/custom\/.*/\\033[0;33m&\\033[0;37m/g | sed s/current\/.*/\\033[0;31m&\\033[0;37m/g | sed s/extra\/.*/\\033[0;32m&\\033[0;37m/g | sed s/community\/.*/\\033[0;35m&\\033[0;37m/g)"
;-)
small fix:
echo -e "$(pacman -Ss gtk2
| sed s/custom\/.*/\\033[0;33m&\\033[0;37m/g
| sed s/current\/.*/\\033[0;31m&\\033[0;37m/g
| sed s/extra\/.*/\\033[0;32m&\\033[0;37m/g
| sed s/community\/.*/\\033[0;35m&\\033[0;37m/g)e[m"
there, that's better.
I summon daemons from the depths of /etc/rc.d
Offline