Maybe upgrading my dotfiles with a function is faster than going to github each time.
This commit is contained in:
parent
78ee927fe0
commit
16d4961f21
13
.bashrc
13
.bashrc
|
@ -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__
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue