diff options
-rw-r--r-- | .zshrc | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -415,6 +415,18 @@ hgrep() { cat-history | mpgrep "$@" | less } +cd-pkg() { + local targets=(~/arch/{community,extra}) + local pkg=$1 + for target in "${targets[@]}"; do + if [[ -f "$target/$pkg/trunk/PKGBUILD" ]]; then + cd "$target/$pkg" + svn up + cd trunk + fi + done +} + # }}} # History {{{ HISTORYDIRECTORY=~/.zsh/history |