Informed by https://dotfiles.github.io/
Having a Git repo in your home folder doesn't work very well, so we clone this into ~/dotfiles and symlink into home with GNU Stow.
Clone and bootstrap:
git clone git@github.com:ansonhoyt/dotfiles.git ~/dotfiles
cd ~/dotfiles
./bootstrap.shBootstrap handles:
- Homebrew installation (if needed)
- GNU Stow installation (if needed)
- Directory creation (
~/.ssh/sockets) - Stow (symlinking dotfiles to home)
Optional next steps:
brew bundle --global # Install Homebrew packages
./.osx # Configure macOS defaultsSee man stow. For ignored files see .stow-local-ignore.
Useful commands:
stow --no --verbose=2 . # Preview changes
stow --verbose --restow . # Reapply (clears stale symlinks)See https://tmuxcheatsheet.com/
tmux new -n <session-name> # create a new session with a name
Ctrl + b d # detach from the current session
tmux ls # list all sessions
tmux a -t <session-name> # attach the named session
- Consider https://github.com/Bash-it/bash-it
- Check out https://news.ycombinator.com/item?id=18896422
- Consider Dotfile madness discussed on HN