Fast shell tools for navigating projects, wrangling git, and staying in flow.
- Jump anywhere — fuzzy-find files (
co) and projects (pr) with instant previews - GitHub shortcuts — search, pick, and clone repos without leaving the terminal (
gpick,gclone) - Pretty diffs — readable git diffs via delta (
gdelta) - Quick commits —
git cmp "message"stages everything and pushes in one shot - Clipboard → Markdown — paste a screenshot, get a webp + markdown link (
mdclip)
git clone git@github.com:regenrek/shellrig.git ~/projects/shellrigThen add to your PATH and source the zsh plugin → full install guide
macOS: save clipboard screenshot into public/ and copy Markdown to clipboard:
brew install pngpaste webp
mdclipMore: docs/mdclip.md.
Quickly open any file in your editor when you roughly know the name but not the path.
co <query> # filtered to "code-ish" files
co -a <query> # all filesInstantly cd into any project folder without typing long paths.
pr <query>Get the full path to a project for use in scripts or other commands.
cwd <query>Search GitHub and interactively pick a repo when you can't remember the exact owner/repo.
gpick <search terms>Clone any repo by searching for it — no need to open a browser or copy URLs.
gclone <search terms|owner/repo>
gclone --ex <search terms|owner/repo> # print SSH clone URL
gclone --p <search terms|owner/repo> # print owner/repoReview changes with syntax highlighting and side-by-side view before committing.
gdelta
gdelta staged
gdelta -- --statTurn a screenshot on your clipboard into a compressed webp and ready-to-paste markdown link.
mdclip
mdclip feature-xBetter directory listings with icons, git status, and tree views.
ls
ll
ltJump to frequently used directories without typing full paths — zoxide learns where you go.
zishellrig list
shellrig hello
# zsh plugin
gdelta --help
gclone --help
gpick --help
co --help
# project
pr <query> # cd into project root
cwd <query> # prints project root
# open files
co <query> # filtered to “code-ish” files
co -a <query> # all filesSuggested installs:
brew install bat micro eza fd ripgrep fzf git-delta gh jq tmux shellcheckWhat they’re used for:
bat: previews inco(fallback tosedif missing)micro: default$EDITORforcoeza:ls/ll/la/ltaliasesfd: file search backend forco,cwd,prripgrep(rg): general-purpose fast search (optional; not required by currentshellrigfunctions)fzf: interactive picker UI forco,gpick,cwd,prgit-delta(delta): pager forgdeltagh: GitHub integration forgpick/gclonejq: JSON parsing forgpicktmux:tksaliasshellcheck: lint (make lint)
Optional:
zinit(zi): zsh plugin manager (if you want to manageshellrig+ other plugins viazi)
These are zsh functions + global git aliases (not bin/ scripts), so keep them in the zsh plugin.
# zsh functions (from `source "$XDG_CONFIG_HOME/zsh/shellrig.zsh"`)
gdelta [staged|-- <git diff args>] # pretty diff via delta
gpick <search terms> # repo picker (gh search + fzf)
gclone [--p|--ex] <terms|owner/repo> # clone helper (gh search + git clone)
# git “external subcommands” (executables on PATH)
git new <branch> # runs `git-new` (create branch + push -u origin)
git cmp <commit message> # runs `git-cmp` (add -A + commit + push)Notes:
- All of these can change remotes / push / clone; treat them as “power tools”.
git cmpstages everything (git add -A) including deletions.
Migration:
- If you previously had
alias.new/alias.cmpin~/.gitconfig, remove them sogituses the executables:git config --global --unset alias.newgit config --global --unset alias.cmp
make lint
make testUse chezmoi to keep dotfiles private, and pull shellrig as an external repo. See docs/chezmoi.md.









