summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2021-03-06 16:58:38 +0100
committerMarc Vertes <mvertes@free.fr>2021-03-06 16:58:38 +0100
commit9aa9c25a4d2ced1ea41d1d981b3fad9fe28a17a6 (patch)
tree7989d5c3833d3b0ee0df9db6420b20d5bd98b94e /.zshrc
parentbcc866236cca05f6caf78a6c3d93a63c9bf19f7c (diff)
update
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc8
1 files changed, 3 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index 15ed2e8..890bfe4 100644
--- a/.zshrc
+++ b/.zshrc
@@ -22,13 +22,11 @@ alias ll='ls -AFGl'
alias ls='ls -AG'
alias ya='rlwrap yaegi'
-export MANWIDTH=92
-
# Functions
man() {
- local width=$(tput cols)
- [ $width -gt $MANWIDTH ] && width=$MANWIDTH
- env MANWIDTH=$width man "$@"
+ local width=''
+ [ $(tput cols) -gt 88 ] && width='MANWIDTH=88'
+ env $width man "$@"
}
meteo() {