Abbreviations
Abbreviations expand when you press Space or Enter. They are terminal-aware: some expand differently in Kitty vs WezTerm vs other terminals.
4.1 Editors
Section titled “4.1 Editors”n / nv / neovim nvime editse sudoeditk kateeditt Open new tab with nvim (terminal-aware)cdnv cd ~/.config/nvimcdnvn cd ~/.config/nvim; nvim4.2 Navigation and Listing
Section titled “4.2 Navigation and Listing”l lslS lss (sort by size)lsR lsr (sort by time, oldest first)lX lx (sort by extension)lT lt (tree, depth 2)lsT lstree (full recursive tree)lzd ld (lazydocker)cdi zi (interactive zoxide picker)4.3 Git
Section titled “4.3 Git”g gitlg lazygitgitig / git-ignore gi (generate .gitignore)4.4 Terminal Windows, Tabs, and Panes
Section titled “4.4 Terminal Windows, Tabs, and Panes”These abbreviations control the terminal emulator. Each has a Kitty variant and a WezTerm variant; the correct one is inserted based on $TERM or $TERM_PROGRAM.
:w New OS window:wv Split pane horizontally (new pane below):wh Split pane vertically (new pane to the right):wo Detach current window to its own OS window:wot Move current pane to a new tab:t New tab:tl Set tab title:tw Set window title:twk Rename workspace (WezTerm only):tp Focus previous tab:tn Focus next tab:q Close current pane/window:Q Close current tab:sw spwin (spawn new OS window)Quick-navigate shortcuts open windows/tabs/panes with preset working dirs:
:tgk New tab at ~/.config/kitty:tgn New tab at ~/.config/nvim:tgf New tab at ~/.config/fish:tgh New tab at ~:tgcz New tab at chezmoi source dir:tgcm New tab at chezmoi source dir:tgp New tab at ~/projects:tgr New tab at / (root)Prefixes :wg* and :wvg* / :whg* open OS windows or splits to the same set of dirs, respectively.
Prefixes :cd* open tabs with a quick cd shortcut:
:cdn cd ~/.config/nvim:cdf cd ~/.config/fish:cdh cd ~:cdcz cd to chezmoi source:cdp cd ~/projectsAppending n to any :cd* abbreviation also runs nvim after changing dir.
4.5 Chezmoi
Section titled “4.5 Chezmoi”cm / cme / cmi / cmap / cmad / cmrm / cmcd /cz / cze / czi / czap / czad / czrm / czcd
cm / cz chezmoicmcd / czcd chezmoi cdcme / cze chezmoi editcmad / czad chezmoi addcmap / czap chezmoi applycmrm / cmf / czrm / czf chezmoi forgetcmi / czi chezmoi init4.6 Docker
Section titled “4.6 Docker”dcl docker context use defaultdcls docker context lslzd ld (lazydocker)4.7 Systemctl
Section titled “4.7 Systemctl”sc systemctlssc sudo systemctlscu systemctl --userst systemctl statusscs sudo systemctl startscr sudo systemctl restartssct sudo systemctl startsscs sudo systemctl stopsscr sudo systemctl restart4.8 AI Assistants
Section titled “4.8 AI Assistants”ag agyag. agy .v antigravity-ides wezterm ssh (WezTerm only)4.9 History Expansion
Section titled “4.9 History Expansion”These are implemented as keybinding helpers, but can also be typed:
!^ Expand to first argument of previous command!* Expand to all arguments of previous commandtypo_sub Interactive typo substitution (Ctrl+F)bang_string !string expansionbang_search !?string searchbang_minus_n !-n (nth-previous command)4.10 Miscellaneous
Section titled “4.10 Miscellaneous”/exit exit:q Close pane (alias for terminal close):Q Close tabsudu sudo -skt kitty (Kitty only)c catspeedtest-fast fast-clibl bd listbs bd syncbC bd create --titlebsh bd showlb lazybeads4.11 Shell Aliases
Section titled “4.11 Shell Aliases”These aliases are defined in conf.d/tricks.fish via alias (which creates Fish functions). They are active in all interactive sessions.
Navigation
Section titled “Navigation”.. cd ..... cd ../...... cd ../../....... cd ../../../........ cd ../../../../..Color Overrides
Section titled “Color Overrides”Force color output for common tools:
grep grep --color=autofgrep fgrep --color=autoegrep egrep --color=autodir dir --color=autovdir vdir --color=autoSafety Wrappers
Section titled “Safety Wrappers”Add -i (interactive confirmation) to destructive commands:
cp cp -imv mv -iArchives and Networking
Section titled “Archives and Networking”tarnow tar -acf Create compressed archive (auto-detects format)untar tar -zxvf Extract a gzip-compressed archivewget wget -c Resume interrupted downloads by defaulttb nc termbin.com 9999 Pipe content to termbin.com for quick sharingSystem Logs
Section titled “System Logs”jctl journalctl -p 3 -xb Show priority-3 (error) journal entries from the current boot