dot/README.md

33 lines
1.6 KiB
Markdown
Raw Normal View History

2019-09-13 23:28:05 +00:00
# dots
2019-11-17 19:00:48 +00:00
A place for backing up my dotfiles. Be sure to clone recursively if you want to grab updated plugins / submodules included. For example, using Pathogen with Vim to manage plugins requires that the plugin to be installed are cloned to the `~/.vim/bundle/` directory. Cloning recursively allows git to clone these same nested repositories/submodules within this directory so Pathogen can handle running the Vim plugins.
2019-09-13 23:28:05 +00:00
Easiest installation is to clone repository into home directory -
2019-09-13 23:28:05 +00:00
```bash
2020-02-19 07:05:07 +00:00
git clone -b headless --recursive https://github.com/shaunrd0/dot ~/dot
cd ~/dot/
stow .
```
If you'd rather clone elsewhere -
```bash
2020-02-19 07:05:07 +00:00
git clone -b headless --recursive https://github.com/shaunrd0/dot /path/to/dot
cd /path/to/dot/
stow -t ~ .
2019-09-13 23:28:05 +00:00
```
I use the `libclang-10-dev` package for clang completion. You can use whichever version you want, as the `.vimrc` configuration hosted here uses an environment variable `$LIBCLANG` which is set using the output of `sudo find / -name libclang.so.1`. To use the same version as I do, simply run `sudo apt install libclang-10-dev`
2019-11-14 14:54:43 +00:00
`stow --adopt .` can be used to install conflicting files, but doing so will result in the loss of your local configurations. If you want to keep them, back up the conflicting files output in the error message before running this command.
2020-02-19 07:05:07 +00:00
After running stow, be sure to check that your repository is clean. If a file has been modified or deleted, checkout again within the repo and it will immediately be restored on your system as well.
```bash
git checkout -- .vimrc
# Or, to step through each change interactively using git..
git checkout -p
```