From dfed16d16891ecb8393e1fba69cfc1101e7ac360 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 16 Aug 2016 11:13:47 -0700 Subject: [PATCH] Remove uber.sh, Move virtualenvwrapper to shellrc --- dotfiles/lib/shellenv/uber.sh | 58 ----------------------------------- dotfiles/lib/shellrc.sh | 1 + 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 dotfiles/lib/shellenv/uber.sh diff --git a/dotfiles/lib/shellenv/uber.sh b/dotfiles/lib/shellenv/uber.sh deleted file mode 100644 index 7ebe7e54..00000000 --- a/dotfiles/lib/shellenv/uber.sh +++ /dev/null @@ -1,58 +0,0 @@ -# added by newengsetup -export UBER_HOME="$HOME/Uber" -export UBER_OWNER="imalison@uber.com" -export UBER_LDAP_UID="imalison" -[ -z "$GIT_SSH" ] || export GIT_SSH="$HOME/.lib/git-ssh.sh" -export VAGRANT_DEFAULT_PROVIDER=aws -[ -s "/usr/local/bin/virtualenvwrapper.sh" ] && . /usr/local/bin/virtualenvwrapper.sh - -cdsync () { - cd $(boxer sync_dir $@) -} -editsync () { - $EDITOR $(boxer sync_dir $@) -} -opensync () { - open $(boxer sync_dir $@) -} -udir () { - cd ~/Uber/ -} -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" -} - -goclone() { - mkdir -p $GOPATH/src/code.uber.internal/$1 - git clone gitolite@code.uber.internal:$1 $GOPATH/src/code.uber.internal/$1 -} - -alias hyper_tunnel='ssh -fN -L 21300:hyperbahn01-sjc1:21300 adhoc03-sjc1' - -add_to_path "$HOME/bin" --before - -alias land_current='arc land $(git which-branch)' - -alias kill_h_forward='ps aux | grep ssh | grep 21300 | get_cols 2 | xargs kill -9' - -function uber_set_user_email_to_imalison { - if in_git_directory; - then - if [[ "$(git config remote.origin.url)" == *"uber"* ]] - then - git config user.email "imalison@uber.com" - fi - fi -} diff --git a/dotfiles/lib/shellrc.sh b/dotfiles/lib/shellrc.sh index c1766fa2..998ecfc1 100644 --- a/dotfiles/lib/shellrc.sh +++ b/dotfiles/lib/shellrc.sh @@ -1,5 +1,6 @@ for filename in ~/.lib/shellrc/*; do source $filename done +[ -s "/usr/local/bin/virtualenvwrapper.sh" ] && . /usr/local/bin/virtualenvwrapper.sh [[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh environment_variable_exists INSIDE_EMACS && inside_emacs_hook