brew install stow
cd # the target directory needs to be directly underneath $HOME
git clone git@github.com:suhlig/dotfiles.git .dotfiles
cd .dotfiles
stow common {linux|osx}
brew bundle --global
git clone https://github.com/TamCore/autoupdate-oh-my-zsh-plugins $ZSH_CUSTOM/plugins/autoupdate
git clone https://github.com/jeffreytse/zsh-vi-mode $ZSH_CUSTOM/plugins/zsh-vi-mode
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Once tpm was installed, press <prefix>I
to install all plugins.
Dotfiles should work without the following, but it's nicer if they are present:
cd ~/.dotfiles
git pull
stow --restow common osx
brew bundle --global
Separating SSH identities, e.g. between different projects, can be done with stow
, too:
- Put the keys into separate directories under
.ssh/identities
:
$ tree ~/.ssh/
/home/suhlig/.ssh/
├── authorized_keys
├── identities
│ ├── other
│ │ ├── id_rsa
│ │ └── id_rsa.pub
│ └── suhlig
│ ├── id_rsa
│ └── id_rsa.pub
└── known_hosts
- Switch identities by specifying the name:
$ ssh-switch suhlig
-
Bad owner or permissions on ~/.ssh/config
git doesn't care about permissions except the
x
flag.chmod 700 ~/.ssh/config
helps.