Update README
This commit is contained in:
parent
612a1704cd
commit
03bdf65b65
22
README.md
22
README.md
|
@ -3,12 +3,11 @@
|
||||||
|
|
||||||
<img src="http://i.giphy.com/ZHlGzvZb130nm.gif" align="right" />
|
<img src="http://i.giphy.com/ZHlGzvZb130nm.gif" align="right" />
|
||||||
|
|
||||||
My dotfiles. Fuel for my madness. Designed for MacOS, Arch Linux and
|
My dotfiles. Fuel for my madness. Designed for MacOS, Arch Linux and the various
|
||||||
the various debian-based boxes I frequently ssh into.
|
debian-based boxes I frequently ssh into.
|
||||||
|
|
||||||
It is organized into topics, some with their own READMEs. Check them out for
|
It is organized into topics, some with their own READMEs. Check them out for more
|
||||||
more targeted information. The `./boostrap` script is used to install and update
|
targeted information. The `./boostrap` script is used to install and update them.
|
||||||
them.
|
|
||||||
|
|
||||||
## Bootstrap
|
## Bootstrap
|
||||||
|
|
||||||
|
@ -22,7 +21,7 @@ Usage: bootstrap [-iuldypLSU] [topic1[ topic2[ ...]]]
|
||||||
Options:
|
Options:
|
||||||
-i Don't run install scripts
|
-i Don't run install scripts
|
||||||
-u Don't run update scripts
|
-u Don't run update scripts
|
||||||
-l Don't symlink dotfiles or bin scripts
|
-l Don't symlink dotfiles
|
||||||
-d Do a dry run (only output commands, no changes)
|
-d Do a dry run (only output commands, no changes)
|
||||||
-y Overwrite conflicts (no prompts)
|
-y Overwrite conflicts (no prompts)
|
||||||
-p Prompt on file conflict (to overwrite)
|
-p Prompt on file conflict (to overwrite)
|
||||||
|
@ -34,15 +33,12 @@ Options:
|
||||||
Here's a simplified break down of what it does:
|
Here's a simplified break down of what it does:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. Symlinks topic's bin scripts to ~/.bin
|
# 1. Symlinks dotfiles to $HOME
|
||||||
ln -sfv $topic/bin/* ~/.bin/
|
|
||||||
|
|
||||||
# 2. Symlinks dotfiles to $HOME
|
|
||||||
ln -sfv $topic/.* ~/
|
ln -sfv $topic/.* ~/
|
||||||
ln -sfv $topic/.config/* ~/.config/
|
ln -sfv $topic/.{config,local}/* ~/.{config,local}/
|
||||||
|
|
||||||
# 3. Track enabled topics in ~/.dotfiles/.enabled.d.
|
# 2. Track enabled topics in ~/.dotfiles/.enabled.d.
|
||||||
# 4. If topic is enabled, run its update script. Otherwise, run its install script
|
# 3. If topic is enabled, run its update script. Otherwise, run its install script
|
||||||
if [[ -e ~/.dotfiles/.enabled.d/$topic ]]; then
|
if [[ -e ~/.dotfiles/.enabled.d/$topic ]]; then
|
||||||
$topic/update
|
$topic/update
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue