# Highlight matched strings. Doesn't work with a pager!
alias grep='grep --color=auto'
+# Pipe output through less.
+tree() {
+ command tree -C "$@" | less
+}
+
+# Better viewer for info pages .. just pipe everything into less.
+info() {
+ command info "$@" 2>/dev/null | less
+}
+
# vim: ft=sh
command tig --max-count=200 --branches --remotes --tags "$@"
}
-# Pipe output through less.
-(( $+commands[tree] )) && tree() {
- command tree -C "$@" | less
-}
-
# Choose the "best" PDF viewer available: xpdf, then zathura (in the past
# zathura was preferred, but recent versions are completely broken: still no
# working search and no page-wise scrolling anymore). Also setup completion
compdef pdf=xpdf
fi
-# Better viewer for info pages .. just pipe everything into less.
-info() {
- command info "$@" 2>/dev/null | less
-}
-
# OS SPECIFIC SETTINGS