X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=e34d9050232303a781951abe0559b2c63740d9cd;hb=73ed8a1af74805e72a81c329fb9fac35b154d600;hp=ca125967f14840a584ef057b9de0ad8c87d8a0d5;hpb=71bd44e6c82a82f3f0ca868c93217f6c522b5d22;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index ca12596..e34d905 100644 --- a/zsh/rc +++ b/zsh/rc @@ -655,17 +655,17 @@ fi # Display all branches (except stash) in gitk but only 200 commits as this is # much faster. Also put in the background and disown. Thanks to drizzd in #git # on Freenode (2010-04-03 17:55 CEST). -gitk() { +(( $+commands[gitk] )) && gitk() { command gitk --max-count=200 --branches --remotes --tags "$@" & disown %command } # Same for tig (except the disown part as it's no GUI program). -tig() { +(( $+commands[tig] )) && tig() { command tig --max-count=200 --branches --remotes --tags "$@" } # Pipe output through less. -tree() { +(( $+commands[tree] )) && tree() { command tree -C "$@" | less }