From ae139fc2d6b94d49a540edc17c8fa5fc3815150f Mon Sep 17 00:00:00 2001 From: tosu Date: Tue, 14 Feb 2023 02:10:30 +0100 Subject: [PATCH] Update 'clone_dotfiles.sh' --- clone_dotfiles.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/clone_dotfiles.sh b/clone_dotfiles.sh index 34f5a81..42e2e87 100644 --- a/clone_dotfiles.sh +++ b/clone_dotfiles.sh @@ -1,10 +1,12 @@ -# Run with -# curl https://git.timo.one/tosu/pastebin/raw/branch/main/clone_dotfiles.sh | sh +# copy & paste & exec git clone --separate-git-dir=$HOME/.dotfiles https://git.timo.one/tosu/dotfiles.git $HOME/dotfiles-tmp -# 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/ + + +# 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/ \ No newline at end of file