summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 2ae57bb..03881f8 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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