for bash, git and various command line utilities
Access the cheatsheets directly in CLI just with one command - no need to go somewhere else and switch context, get the hint where you need it.
Before using these cheatsheets, ensure you have the following installed:
- Bash/Zsh/compatible shell - Standard on macOS/Linux, available on Windows via WSL or Git Bash
- Git - For git commands in .git_cheat
- GitHub CLI (gh) - For GitHub authentication commands (install from cli.github.com)
- fzf - Fuzzy finder for interactive file selection (install: brew install fzf on macOS, apt install fzf on Linux)
- tree - Directory tree viewer (brew install tree / apt install tree)
- VS Code - For code command functionality
- Common Lisp / SBCL - For translation functions in .cheatsheet (if you use those features)
- translate-shell - For trans command (install from github.com/soimort/translate-shell)
- Node.js - For node commands in bash cheatsheet
- Python 3 - For HTTP server and other Python commands
- Clone or download the cheatsheet files to
~/Bash/directory
mkdir -p ~/Bash
# Place .cheatsheet, .bash_cheat, and .git_cheat in ~/Bash/
- Add aliases to your shell configuration file:
macOS (Bash):
~/.bash_profileLinux (Bash):~/.bashrcmacOS/Linux (Zsh):~/.zshrcWindows (Git Bash):~/.bash_profileor~/.bashrc
alias ?='echo "💡 Quick: open \"\$(find . -name \"*.pdf\" | fzf)\" | Full: cheat"'
alias cheat='cat ~/Bash/.cheatsheet'
alias bash_cheat='cat ~/Bash/.bash_cheat'
alias git_cheat='cat ~/Bash/.git_cheat'
- Reload configuration
source ~/.bash_profile # Use your own configuration file name
# or: source ~/.bashrc
# or: source ~/.zshrc
- Test the aliases in bash shell:
cheat- shows a common generic cheatsheet,
bash_cheat- shows popular bash commands description,
git_cheat- shows popular git commands description.
?- quick helper (requires fzf for file finder)
- The
?alias requires fzf to be installed for interactive file selection - Small one-line alias like
?do not require a separate files and can be defined in the shell configuration file - File paths assume cheatsheets are stored in ~/Bash/ - adjust paths in aliases if you use a different location
- Windows users should use Git Bash or WSL for best compatibility
- Some commands (like open) are macOS-specific; use explorer on Windows or xdg-open on Linux
| Term | Description |
|---|---|
| Terminal | A visual interface or app that gives you access to a shell (e.g., Terminal.app on macOS, GNOME Terminal on Linux, Windows Terminal). Think of it as the "window" or "UI." |
| Command Line (CLI) | The actual interface you type commands into — the "line" where commands are entered (e.g., Bash, Zsh, CMD, PowerShell) |


