14 lines
504 B
Bash
14 lines
504 B
Bash
# copy & paste & exec
|
|
$(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)
|
|
$(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 |