Dotfiles.
Run ./install.sh.
Warning: this script is not generic. It handles a bunch of special cases that work for my setup but may break things in a different context.
- Creates symlinks in
$HOMEto files insrc/. - Files in
nestedare linked to only if corresponding directory exists in$HOME. - Existing symlinks are overridden.
- Removes existing symlinks to
.bashrcand.bashrc.local. - If
$HOME/.bashrcdoes not exist: creates symlink tosrc/.bashrc. - If
$HOME/.bashrcexists:- Creates
.bashrc.localsymlink tosrc/.bashrc - Appends code to
.bashrcto source.bashrc.local
- Creates
- If localhost:
- Handles
.bash_profilefor a Mac and.profilefor Linux the same way other dotfiles are handled.
- Handles
- If remote host:
- If
.profiledoes not exist: fails (check manually) - If
.profileexists:- Appends code to
.profileto attach to an existing tmux session or start a new one.
- Appends code to
- If