From 103d6f37ef4e2c2681de9bfdc0b1affd71565c4b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 6 Jul 2015 17:09:54 -0700 Subject: [PATCH] uc and urtc for uber checkouts --- dotfiles/lib/shellenv/uber.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dotfiles/lib/shellenv/uber.sh b/dotfiles/lib/shellenv/uber.sh index 2e5844dc..264181ce 100644 --- a/dotfiles/lib/shellenv/uber.sh +++ b/dotfiles/lib/shellenv/uber.sh @@ -21,3 +21,15 @@ udir () { sdir () { cd ~/Uber/sync/ } +function uc { + udir + local project_dir="$(basename $1)" + if [ ! -e $project_dir ]; then + git clone gitolite@code.uber.internal:$1 + fi + cd "$project_dir" +} + +function urtc { + uc "rt/$1" +}