diff --git a/README.md b/README.md index 52f8a73..16ddfce 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,8 @@ ![xkcd 1806](https://imgs.xkcd.com/comics/borrow_your_laptop.png) ## Install -Clone the repository with the submodules and run the install script to symlink the files your `$HOME` directory: +This repository uses [chezmoi](https://www.chezmoi.io/) to manage the dotfiles. To install the dotfiles, first install `chezmoi` with your package manage and then run: +``` sh +chezmoi init https://code.badjware.dev/badjware/dotfiles.git +chezmoi apply ``` -git clone --recurse-submodules https://github.com/badjware/dotfiles.git ~/.dotfiles -cd ~/.dotfiles -./install.sh -``` - -The install script supports some options. For exemple: - -* Don't ask for confirmation: `./install.sh --yes` -* Copy instead of creating symlinks: `./install.sh --copy` - -For a full list of options, run `./install.sh --help`. - diff --git a/home/dot_vim/vimrc b/home/dot_vim/vimrc index 5e3d125..be79499 100644 --- a/home/dot_vim/vimrc +++ b/home/dot_vim/vimrc @@ -58,7 +58,7 @@ if dein#load_state(pluginpath) call dein#add('tpope/vim-sensible') " Colorscheme - call dein#add('ajh17/Spacegray.vim.git') + " call dein#add('ajh17/Spacegray.vim.git') " Interface call dein#add('itchyny/lightline.vim') @@ -104,7 +104,7 @@ if dein#check_install() endif " Color scheme -colorscheme spacegray +" colorscheme spacegray " 16 millions colors "set termguicolors " Disable background in terminal diff --git a/home/run_once_setup-vim.sh b/home/run_once_setup-vim.sh index 9b13209..001bf82 100644 --- a/home/run_once_setup-vim.sh +++ b/home/run_once_setup-vim.sh @@ -1,2 +1,8 @@ #!/bin/bash -sh -c "$(curl -fsSL https://raw.githubusercontent.com/Shougo/dein-installer.vim/master/installer.sh)" + +INSTALL_DIR="$HOME/.vim/bundle/repos/github.com/Shougo/dein.vim" + +if [ ! -d "$INSTALL_DIR" ]; then + mkdir -p "$(dirname $INSTALL_DIR)" || true + git clone https://github.com/Shougo/dein.vim "$INSTALL_DIR" +fi