mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-16 21:40:45 +01:00
bashrc & zshrc: fix shell-things function
set git upstream **after** we have moved into the repository.
This commit is contained in:
parent
ae47a222e6
commit
007b6d2a33
2
bashrc
2
bashrc
@ -692,10 +692,10 @@ export SHELL_THINGS_REPO=$HOME/.shell-things
|
|||||||
|
|
||||||
# Check if ~/.shell-things exists and cd and pull.
|
# Check if ~/.shell-things exists and cd and pull.
|
||||||
if [ -d $SHELL_THINGS_REPO ]; then
|
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 "shell-things: $SHELL_THINGS_REPO exists, git pulling..."
|
||||||
echo ""
|
echo ""
|
||||||
cd $SHELL_THINGS_REPO
|
cd $SHELL_THINGS_REPO
|
||||||
|
git remote set-url origin https://github.com/Mikaela/shell-things.git
|
||||||
git pull
|
git pull
|
||||||
echo ""
|
echo ""
|
||||||
echo "shell-things: Installing/Upgrading..."
|
echo "shell-things: Installing/Upgrading..."
|
||||||
|
2
zshrc
2
zshrc
@ -665,10 +665,10 @@ export SHELL_THINGS_REPO=$HOME/.shell-things
|
|||||||
|
|
||||||
# Check if ~/.shell-things exists and cd and pull.
|
# Check if ~/.shell-things exists and cd and pull.
|
||||||
if [ -d $SHELL_THINGS_REPO ]; then
|
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 "shell-things: $SHELL_THINGS_REPO exists, git pulling..."
|
||||||
echo ""
|
echo ""
|
||||||
cd $SHELL_THINGS_REPO
|
cd $SHELL_THINGS_REPO
|
||||||
|
git remote set-url origin https://github.com/Mikaela/shell-things.git
|
||||||
git pull
|
git pull
|
||||||
echo ""
|
echo ""
|
||||||
echo "shell-things: Installing/Upgrading..."
|
echo "shell-things: Installing/Upgrading..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user