bashrc & zshrc: fix shell-things function

set git upstream **after** we have moved into the repository.
This commit is contained in:
Mikaela Suomalainen 2014-12-21 16:18:49 +02:00
parent ae47a222e6
commit 007b6d2a33
2 changed files with 2 additions and 2 deletions

2
bashrc
View File

@ -692,10 +692,10 @@ export SHELL_THINGS_REPO=$HOME/.shell-things
# Check if ~/.shell-things exists and cd and pull.
if [ -d $SHELL_THINGS_REPO ]; then
git remote set-url origin https://github.com/Mikaela/shell-things.git
echo "shell-things: $SHELL_THINGS_REPO exists, git pulling..."
echo ""
cd $SHELL_THINGS_REPO
git remote set-url origin https://github.com/Mikaela/shell-things.git
git pull
echo ""
echo "shell-things: Installing/Upgrading..."

2
zshrc
View File

@ -665,10 +665,10 @@ export SHELL_THINGS_REPO=$HOME/.shell-things
# Check if ~/.shell-things exists and cd and pull.
if [ -d $SHELL_THINGS_REPO ]; then
git remote set-url origin https://github.com/Mikaela/shell-things.git
echo "shell-things: $SHELL_THINGS_REPO exists, git pulling..."
echo ""
cd $SHELL_THINGS_REPO
git remote set-url origin https://github.com/Mikaela/shell-things.git
git pull
echo ""
echo "shell-things: Installing/Upgrading..."