Skip to content

Instantly share code, notes, and snippets.

@Jedzia
Created December 18, 2018 00:00
Show Gist options
  • Save Jedzia/de3f6275c53f7d037d69beb77490719b to your computer and use it in GitHub Desktop.
Save Jedzia/de3f6275c53f7d037d69beb77490719b to your computer and use it in GitHub Desktop.
Gentoo: Colorful browsing of eix query results with less
# 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