From faa4da22315bf3b0b79da8ef3d0ef8aa68148bbf Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Tue, 9 Jun 2009 15:09:50 +0200 Subject: Added up() function for updating repos (svn/git) --- zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 +} -- cgit v1.2.3