Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Fwd: [[ -x =command ]]
- X-seq: zsh-users 12022
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Fwd: [[ -x =command ]]
- Date: Wed, 17 Oct 2007 12:57:39 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=bkvpgxob5MjWMJDgKwiUOzMS+9OnrKI9t1SZ71FNPTQ=; b=Av3L81wFOlKyUHzX0HebFHcxngQQuf8X07ZfAcfYCRgVKtbPQF7U9fiGefLx+QV5Z6GF9sEc0G4FDnMHUxXV1XMRZz+6WNoIhw35hHdmSg/+8oWR8vHytLlLbvenawFYQB2K1iKjeDeqlKUkSrOth6lBnNB2hHha7SaRFRjSfr4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nFblKaAKKjpcV35WX7sXUi89bQiQT3suOVVlRcuS3ufeVQQZ1gOdBrgD7Ne/1lfphBy5j5RdKe0nBppCVTi4Cr0hAJb1ic9YgzyIk520OzyEULJm/EwN8O6TO4jTIg3MxDHpLVH+Zf9+qKsntenXod/i/R1g7W7WPpCxnJHZ/z8=
- In-reply-to: <2d460de70710170355w170c39cby796a80cdb52cfd1d@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071016210548.26560.qmail@xxxxxxxxxxx> <2d460de70710170355w170c39cby796a80cdb52cfd1d@xxxxxxxxxxxxxx>
On 16/10/2007, Atom Smasher <atom@xxxxxxxxxxx> wrote:
> i've got this in my ~/.zshrc:
> [[ -x =most ]] && export PAGER=most
Somewhat unrelated, but I assume you are using most for its colour
capabilities and putting up with its shortcomings to have them.
I suggest
if [[ -x `which less` ]]
then
export PAGER="less"
if [ $terminfo[colors] -ge 8 ]
then
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
fi
else
export PAGER="more"
fi
or whichever modification suits your needs.
Richard
PS: I hate GMail and its pityful list handling and full lack of any
scriptability
Messages sorted by:
Reverse Date,
Date,
Thread,
Author