Update 'clone_dotfiles.sh'

This commit is contained in:
tosu 2023-02-14 13:01:19 +01:00
parent c186c2d7c5
commit 92c9ddbe44
1 changed files with 10 additions and 10 deletions

View File

@ -1,14 +1,14 @@
# copy & paste & exec
\git clone --separate-git-dir=$HOME/.dotfiles https://git.timo.one/tosu/dotfiles.git $HOME/dotfiles-tmp
\cp -r ~/dotfiles-tmp/.* ~
\cp -r ~/dotfiles-tmp/* ~
\rm -r ~/dotfiles-tmp/
\rm ~/.git
$(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) ~/.git
# OR (for push/pull)
\git clone --separate-git-dir=$HOME/.dotfiles gt:tosu/dotfiles $HOME/dotfiles-tmp
\cp -r ~/dotfiles-tmp/.* ~
\cp -r ~/dotfiles-tmp/* ~
\rm -r ~/dotfiles-tmp/
\rm ~/.git
$(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) ~/.git