Update 'clone_dotfiles.sh'
This commit is contained in:
parent
698190189c
commit
60793fe118
|
@ -1,16 +1,16 @@
|
||||||
# copy & paste & exec
|
# copy & paste & exec
|
||||||
builtin shopt -s dotglob
|
builtin shopt -s dotglob
|
||||||
$(type -P rm) -rf ~/.dotfiles
|
$(type -P rm) -rf ~/.dotfiles
|
||||||
|
$(type -P rm) -rf ~/.git
|
||||||
$(type -P git) clone --separate-git-dir=$HOME/.dotfiles https://git.timo.one/tosu/dotfiles.git $HOME/dotfiles-tmp
|
$(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) -rf ~/dotfiles-tmp/
|
$(type -P rm) -rf ~/dotfiles-tmp/
|
||||||
$(type -P rm) -rf ~/.git
|
|
||||||
|
|
||||||
|
|
||||||
# OR (for push/pull)
|
# OR (for push/pull)
|
||||||
builtin shopt -s dotglob
|
builtin shopt -s dotglob
|
||||||
$(type -P rm) -rf ~/.dotfiles
|
$(type -P rm) -rf ~/.dotfiles
|
||||||
|
$(type -P rm) -rf ~/.git
|
||||||
$(type -P git) clone --separate-git-dir=$HOME/.dotfiles gt:tosu/dotfiles $HOME/dotfiles-tmp
|
$(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) -rf ~/dotfiles-tmp/
|
$(type -P rm) -rf ~/dotfiles-tmp/
|
||||||
$(type -P rm) -rf ~/.git
|
|
Loading…
Reference in New Issue