Personal dotfiles and setup scripts for a desktop environment that uses tmux for window management, Vim for code editing, and works well over SSH. Supports macOS and Linux.
- Install/link the files in this repo:
./install.sh- Reload your shell so the aliases/functions are available:
source ~/.bashrcGet Ghostty here: https://ghostty.org (install on the laptop). It's a GPU-accelerated terminal that matches your OS light/dark theme. Kitty configs are also available.
After install, link the config from this repo:
cd ghostty
./install_ghostty.shInstall coc.nvim tooling for Vim (autocompleter support for multiple languages):
cd vim
./install_coc.shKey shortcuts:
move: hjkl
move a lot: Shift-hjkl
new tab: Ctrl-t
close tab: :q
open current directory: Ctrl-d
go to definition: gd
undo go to definition: Ctrl-o
save: :w
copy: \\c
If you want plugins, open Vim and run:
:PlugInstallThe install script sets up these aliases to start or resume a tmux session:
# init a new session named "moo"
newmoo
# resume the session
mooKey shortcuts:
move between windows: Shift-Left/Right
new window: Ctrl-b c
close window: Ctrl-d
The install script sets up these aliases:
g='git'
ga='git add .'
st='git status && git diff --stat'
gd='git diff'
gs='git -c color.status=always status -s && ...'
cm='git-commit-all'
pl='git pull'
ph='git push --force-with-lease'
mg='git fetch && git merge origin/master --no-edit'
br='git log --graph --oneline --decorate --all'Recommended to reduce wrist strain: map Right Cmd/Alt to Control, and Caps Lock to Escape.
Linux (keyd):
cd keyd
./install_keyd.shmacOS (Karabiner-Elements): https://karabiner-elements.pqrs.org
Install the Codex CLI:
npm i -g @openai/codexLog in with ChatGPT. If the login prompt opens in a browser on the VM, SSH tunnel the port to your laptop:
ssh -L 1455:localhost:1455 you@your-vmThen open the localhost URL that the login prompt prints in your laptop browser.