aboutsummaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/john/.shrc9
1 files changed, 8 insertions, 1 deletions
diff --git a/home/john/.shrc b/home/john/.shrc
index 51d3be7..4196bac 100644
--- a/home/john/.shrc
+++ b/home/john/.shrc
@@ -15,7 +15,6 @@ case "$-" in *i*)
alias ack='ack --noheading'
alias info='info --vi-keys'
alias ls='ls -p'
- alias m='less -XF'
alias vi='utf8 vi'
alias w3m='utf8 w3m'
alias xinput='utf8 xinput'
@@ -26,6 +25,14 @@ case "$-" in *i*)
rm $f
}
+ m() {
+ if [ -t 1 ]; then
+ "$@" 2>&1 | less -XF
+ else
+ less -XF
+ fi
+ }
+
go() {
[ -z "$1" ] && { echo usage: $0 [cmd ...] name 2>&1; return 1; }
eval name=\$$#