From: Simon Ruderich Date: Mon, 9 Jun 2014 12:42:29 +0000 (+0200) Subject: shell/aliases: move some commands from zsh/rc X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=fd641de15b288191fca8ab4cfd17c85f03c24456;p=config%2Fdotfiles.git shell/aliases: move some commands from zsh/rc --- diff --git a/shell/aliases.in b/shell/aliases.in index 02958da..73f30ea 100644 --- a/shell/aliases.in +++ b/shell/aliases.in @@ -98,4 +98,14 @@ df() { # 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 diff --git a/zsh/rc b/zsh/rc index 666f40e..18c6695 100644 --- a/zsh/rc +++ b/zsh/rc @@ -865,11 +865,6 @@ fi 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 @@ -889,11 +884,6 @@ elif (( $+commands[zathura] )); then compdef pdf=xpdf fi -# Better viewer for info pages .. just pipe everything into less. -info() { - command info "$@" 2>/dev/null | less -} - # OS SPECIFIC SETTINGS