Created
December 18, 2018 00:00
-
-
Save Jedzia/de3f6275c53f7d037d69beb77490719b to your computer and use it in GitHub Desktop.
Gentoo: Colorful browsing of eix query results with less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Colorful browsing of eix query results with less | |
# /etc/profile.d/colorful_eix.sh | |
# eixl <package> -> eix <package> searches packages via name | |
# eixd <package> -> eix -S <package> search in package description | |
# unbuffer is from the examples (use-flag examples) of dev-tcltk/expect | |
# or via https://github.com/aeruder/expect/blob/master/example/unbuffer | |
run_eix_colored_less() { | |
EIX_LIMIT=0 unbuffer eix $1|less -R | |
} | |
alias eixl=run_eix_colored_less | |
run_eix_description_colored_less() { | |
EIX_LIMIT=0 unbuffer eix -S $1|less -R | |
} | |
alias eixd=run_eix_description_colored_less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment