X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/4cc1c2072705aecf14e12310a0e00f66627519ca..0701131d8dcb80689a38b892abc1994b1d9bf5cc:/.zsh/zshrc/30_aliases diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index 6908768..c630f6f 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -8,6 +8,8 @@ # Source repository: git://git.madduck.net/etc/zsh.git # +function trace() { eval "set -x; $@" } + alias mv='nocorrect mv' alias cp='nocorrect cp' alias ln='nocorrect ln' @@ -68,9 +70,8 @@ alias bug='BROWSER=www-browser bts show' # handy documentation lookup on Debian # from http://www.michael-prokop.at/computer/config/.zshrc -doc() { cd /usr/share/doc/$1 && ls } -_doc() { _files -W /usr/share/doc -/ } -compdef _doc doc +doc() { cd /usr/share/doc/$1 } +compdef '_files -W /usr/share/doc -/' doc alias giti='git init && git add . && git commit -minitial\ checkin && git tag orig'