update readme, install arg
This commit is contained in:
parent
e4f6e7c571
commit
002240d8fb
32
README.md
32
README.md
@ -5,26 +5,28 @@ Clone this repo:
|
|||||||
$ git clone --recurse-submodules https://git.sr.ht/~jswank/dotfiles
|
$ git clone --recurse-submodules https://git.sr.ht/~jswank/dotfiles
|
||||||
```
|
```
|
||||||
|
|
||||||
Install my dotfiles:
|
But since you forgot to grab the submodules, get them now:
|
||||||
```console
|
```
|
||||||
$ ./install
|
$ git submodule update --init --recursive
|
||||||
```
|
```
|
||||||
|
|
||||||
(which just runs: `ls -d */ | tr -d / | xargs stow -R`)
|
Install my dotfiles:
|
||||||
|
```console
|
||||||
|
$ ./install.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
This will install most common dotfiles: if you want to install a set, provide
|
||||||
|
that as an argument:
|
||||||
|
```console
|
||||||
|
$ ./install.sh i3 # installed i3 dotfiles
|
||||||
|
```
|
||||||
|
|
||||||
There are two potential gotchas:
|
There are two potential gotchas:
|
||||||
|
|
||||||
1. `stow` is not installed on the system. Be sure to install it.
|
1. `stow` is not installed on the system. There is a bash equivalent that is
|
||||||
|
close enough for most purposes in this repo that the install script will
|
||||||
|
use.
|
||||||
|
|
||||||
2. There submodules in this repo (mostly neovim plugins) and they didn't get
|
2. There submodules in this repo (mostly neovim plugins) and they didn't get
|
||||||
populated when you cloned the repo.
|
populated when you cloned the repo. See above.
|
||||||
|
|
||||||
This repo should have been cloned using the --recurse-submodules flag, i.e.
|
|
||||||
```console
|
|
||||||
$ git clone --recurse-submodules https://git.sr.ht/~jswank/dotfiles
|
|
||||||
```
|
|
||||||
|
|
||||||
But, since you forgot, fix this by running:
|
|
||||||
```console
|
|
||||||
$ git submodule update --init --recursive
|
|
||||||
```
|
|
||||||
|
|||||||
@ -17,6 +17,10 @@ for f in ~/.zshrc ~/.profile; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -n $1 ]; then
|
||||||
|
$STOW -t $HOME $1
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# rm -f $HOME/.zshrc $HOME/.profile >/dev/null 2>&1
|
# rm -f $HOME/.zshrc $HOME/.profile >/dev/null 2>&1
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user