summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-06-09 15:09:50 +0200
committerStefan Ritter <xeno@thehappy.de>2009-06-09 15:09:50 +0200
commitfaa4da22315bf3b0b79da8ef3d0ef8aa68148bbf (patch)
treefa44cb071a7d3ca33058ab4763acb5312b2f8d73 /zshrc
parent2589e76066c0e7abd4583b39c5adc0228310491f (diff)
Added up() function for updating repos (svn/git)
Diffstat (limited to '')
-rw-r--r--zshrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index 34f5cd5..a57bb12 100644
--- a/zshrc
+++ b/zshrc
@@ -126,3 +126,13 @@ vm() {
echo "sid"
fi
}
+
+up() {
+ if [ -e ./.svn ]; then
+ svn up
+ elif [ -e ./.git ]; then
+ git pull
+ else
+ echo Kein Repositiory!
+ fi
+}