Configs
Six pages of configuration for tmux, bash and zsh, git, editors, and ssh. Each one explains what a setting does, which file it goes in and how to reload it.
- ~/.tmux.conf
tmux
A starter config explained line by line: a new prefix key, mouse support, a bigger scrollback and what it costs in memory, vi keys in copy mode, and a reload key.
- ~/.bashrc · ~/.zshrc
Shell history
Bash and zsh history settings side by side: how big to make it, appending instead of overwriting, sharing it between open terminals, and what the leading-space habit does.
- ~/.bashrc · ~/.zshrc
Shell navigation
Fewer keystrokes to get around, with autocd, cdspell, CDPATH and history search on the arrow keys (zsh), plus
lsaliases and anmcdfunction, with bash and zsh in separate blocks. - ~/.gitconfig
Git
Four everyday aliases: show the last commit, a compact graph of every branch, stash untracked files too, and take back the last commit, with a note on when that one can bite you.
- ~/.vimrc · ~/.nanorc
Editors
A minimal vim and nano config explained line by line, for servers where you can’t or don’t want to install plugins.
- ~/.ssh/config
ssh
An annotated ~/.ssh/config: host aliases, IdentitiesOnly, ProxyJump, keepalives, connection sharing, Host * defaults, and checking it all with ssh -G.
Moved
This page used to hold every snippet on one long page. If an old link brought you here, the snippet now lives on its own page:
| Old link | Now at |
|---|---|
/configs/#tmux | tmux |
/configs/#tmux-prefix | tmux: Rebind the prefix |
/configs/#tmux-mouse | tmux: Mouse support |
/configs/#tmux-history-limit | tmux: Scrollback limit |
/configs/#tmux-vi-copy-mode | tmux: Vi keys in copy mode |
/configs/#tmux-reload-key | tmux: Reload key |
/configs/#herdr | tmux: Other multiplexers (herdr) |
/configs/#herdr-prefix | tmux: herdr prefix |
/configs/#shell | Shell history and Shell navigation |
/configs/#zsh-history | Shell history: zsh |
/configs/#bash-history | Shell history: bash |
/configs/#autocd | Shell navigation: autocd |
/configs/#cdpath | Shell navigation: CDPATH |
/configs/#history-search | Shell navigation: History search on the arrow keys |
/configs/#ls-aliases | Shell navigation: ls aliases |
/configs/#mcd | Shell navigation: mcd |
/configs/#git | Git |
/configs/#git-last | Git: git last |
/configs/#git-lg | Git: git lg |
/configs/#git-stash-all | Git: git stash-all |
/configs/#git-undo | Git: git undo |
/configs/#editors | Editors |
/configs/#vimrc | Editors: vimrc |
/configs/#nanorc | Editors: nanorc |