Update 'clone_dotfiles.sh'

This commit is contained in:
tosu 2023-02-14 13:02:38 +01:00
parent 92c9ddbe44
commit 9e767c0260
1 changed files with 4 additions and 2 deletions

View File

@ -1,14 +1,16 @@
# copy & paste & exec
$(type -P rm) -rf ~/.dotfiles
$(type -P git) clone --separate-git-dir=$HOME/.dotfiles https://git.timo.one/tosu/dotfiles.git $HOME/dotfiles-tmp
$(type -P cp) -r ~/dotfiles-tmp/.* ~
$(type -P cp) -r ~/dotfiles-tmp/* ~
$(type -P rm) -r ~/dotfiles-tmp/
$(type -P rm) -rf ~/dotfiles-tmp/
$(type -P rm) ~/.git
# OR (for push/pull)
$(type -P rm) -rf ~/.dotfiles
$(type -P git) clone --separate-git-dir=$HOME/.dotfiles gt:tosu/dotfiles $HOME/dotfiles-tmp
$(type -P cp) -r ~/dotfiles-tmp/.* ~
$(type -P cp) -r ~/dotfiles-tmp/* ~
$(type -P rm) -r ~/dotfiles-tmp/
$(type -P rm) -rf ~/dotfiles-tmp/
$(type -P rm) ~/.git