- Install (if necessary) Oh-My-Zsh and the two plugins we use, enabling autosuggestions and syntax highlighting
- Export the PATH variable, exposing the binaries we installed to the command line
- Configure fzf
- Vimify everything
- Vi mode to navigate command line
vin escape mode launches Vim with current string
- Use Vim for manpages
- Vi mode to navigate command line
- Load all aliases and functions
- Launch tmux on start
- If no session present, starts new session with name
main - If session present, starts new session with name in format
alt[n_sessions - 1](e.g.alt0,alt1, etc.)
- If no session present, starts new session with name
pbcopy— Copy to clipboard (works across macOS, Linux, WSL)pbpaste— Paste from clipboard (works across macOS, Linux, WSL)open— Open a file/directory (works across macOS, Linux, WSL)ls— Use exa instead oflstree— Use exa with-Tinstead oftreeo— Open current directory in system file explorerpfkill— Likepkill, but leveraging fzfds— change directory into~/Desktopdc— change directory into~/Documentsdl— change directory into~/Downloadstmcp— Copy tmux buffer into system clipboardexpandurl— Follow URL redirects, and return final locationhidedesktop— Hide all files on desktop (macOS only)showdesktop— Show all files on desktop (macOS only)afk— Lock the display (macOS only)
ip— Fetch a machine's local and public IP addressesmkd— Make a directory andcdinto it (works recursively)dataurl— Make a dataurl for a given filecdf— Change directory to match the current one in Finder
There’s not much to my default Zsh theme — just a simple left prompt showing the current path and a right prompt showing git status if available. For the left prompt, if the user is root, the leader, >, changes from bold white to bold red.
The below image additionally shows off the usefullness of Zsh syntax highlighting.