summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-10-27 15:42:23 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-10-27 15:42:23 +0200
commitc9745b9e3a9bc5306e14779c9e91930123f574d4 (patch)
treef0b8bc871bfacace89e15ae7f9ed629e0990f172 /.zshrc
parent8da109c16ac6ba711b9755eadff78e190c7cf2fb (diff)
downloaddotfiles-c9745b9e3a9bc5306e14779c9e91930123f574d4.tar.gz
dotfiles-c9745b9e3a9bc5306e14779c9e91930123f574d4.tar.xz
zshrc: Add cd-pkg alias
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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