summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-12-19 13:56:22 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-12-19 13:56:22 +0100
commit7858d0eeca0f54221f35c8b7a45fbbc1afcac92d (patch)
treeca126a8c83b6bdee08aa49fdc9d2ebb3fc3e621d /etc
parent7bc92a3d3fcfd0a2adc93c774b6fa5d8ebdb9095 (diff)
zshrc: Set MANWIDTH if the terminal is rather wide
Diffstat (limited to 'etc')
-rw-r--r--etc/rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 6b37c3b..2c6412f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -94,6 +94,9 @@ if [[ $distro == debian ]] {
export MANPATH=/var/cache/man
} else {
export MANPATH=/usr/share/man
+ if (( COLUMNS > 100 )) {
+ export MANWIDTH=100
+ }
}
MANPATH+=":/usr/local/share/man:$HOME/packages/.collected/man"
}