diff --git a/README.md b/README.md index 943855c3..9dbfa61d 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,32 @@ docker run -e TERM -e COLORTERM -w /root -it --rm ubuntu sh -uec ' su -c zsh' ``` +## Restore your Dotfiles manually + +* Install git +* Clone your dotfiles repository `git clone [your repository of dotfiles] $HOME/.dotfiles` +* Go to your dotfiles folder `cd $HOME/.dotfiles` +* Install git submodules `git submodule update --init --recursive modules/dotly` +* Install your dotfiles `DOTFILES_PATH="$HOME/.dotfiles" DOTLY_PATH="$DOTFILES_PATH/modules/dotly" "$DOTLY_PATH/bin/dot" self install` +* Restart your terminal +* Import your packages `dot package import` + +## Restore your Dotfiles with script + +Using wget +```bash +bash <(wget -qO- https://raw.githubusercontent.com/CodelyTV/dotly/HEAD/restorer) +``` + +Using curl +```bash +bash <(curl -s https://raw.githubusercontent.com/CodelyTV/dotly/HEAD/restorer) +``` + +You need to know your GitHub username, repository and install ssh key if your repository is private. + +It also supports other git repos, but you need to know your git repository url. + ## 💻 Usage ### 🚶 First steps