Maybe upgrading my dotfiles with a function is faster than going to github each time.

This commit is contained in:
Julien Palard 2018-08-12 11:50:01 +02:00
parent 78ee927fe0
commit 16d4961f21
1 changed files with 13 additions and 0 deletions

13
.bashrc
View File

@ -178,3 +178,16 @@ ssh-agent-restore()
fi
export SSH_AGENT_PID="${SSH_AUTH_SOCK##/*/*.}"
}
dotfiles()
{
local CLONE="$HOME/.config/dotfiles-repo/"
mkdir -p ~/.config/
if [ -d "$CLONE" ]
then
git -C "$CLONE" pull --ff-only
else
git clone -q https://github.com/JulienPalard/dotfiles.git "$CLONE"
fi
"$CLONE"/interactive_copy.py "$CLONE" ~/ --exclude README.md .git interactive_copy.py install.sh __pycache__
}