diff options
author | Stefan Ritter <xeno@thehappy.de> | 2009-06-09 15:09:50 +0200 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2009-06-09 15:09:50 +0200 |
commit | faa4da22315bf3b0b79da8ef3d0ef8aa68148bbf (patch) | |
tree | fa44cb071a7d3ca33058ab4763acb5312b2f8d73 /zshrc | |
parent | 2589e76066c0e7abd4583b39c5adc0228310491f (diff) |
Added up() function for updating repos (svn/git)
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 +} |