Skip to main content

My most used command-line commands

Close-up a typewriter's typebars

Following Jeff Triplett’s lead, here’s a list of my most used terminal commands.

No.TotalCommandInfo
1.1239rgripgrep
2.1038caliased to pycharm
3.847gcaliased to git commit --verbose via Oh My Zsh Git plugin
4.559gcoaliased to git checkout
5.518git
6.384./python.exePython built from source on macOS
7.365cd
8.359cataliased to bat -p
9.336gsaliased to scmpuff_status via scmpuff to give numeric shortcuts for files
10.326glaliased to git log via Oh My Zsh Git plugin
11.315gbaliased to git branch via Oh My Zsh Git plugin
12.308paliased to python
13.263gaaliased to git add via Oh My Zsh Git plugin
14.227laliased to ls -lah
15.214uvPython package manager
16.203faliased to find . | rg (TODO: learn fd)
17.189python
18.175gdaliased to git diff via Oh My Zsh Git plugin
19.174rm
20.165emthe CLI emoji keyboard
21.164ghaliased to GH_PAGER="less -FRX" gh, mostly for gh co <PR number>, sometimes gh cache delete --all
22.145open
23.120mv
24.120makefor building Python, docs, devguide and PEPs
25.117cp
26.116tox
27.116pypisee below
28.111bcaliased to /usr/local/bin/bcompare Beyond Compare diff tool
29.110piualiased to uv pip install --system -U
30.110pcraliased to pre-commit run --all-files

pypi is a little function in my dotfiles for opening the PyPI page for a package, either pypi <package> or let it try and guess the name from the current directory:

pypi () {
	if [ "$1" = "" ]
	then
		local name=$(python setup.py --name)
	else
		local name=$1
	fi
	echo $name
	open https://pypi.org/project/"$name"/
}

The macOS/iTerm/Oh My Zsh command to get this list:

history | awk '{print $2}' | sort | uniq --count | sort --numeric-sort --reverse | head -30


Header photo: Close-up the typebars of a Olympia Büromaschinenwerke A.G. Erfurt typewriter (CC BY-NC-SA 2.0 Hugo van Kemenade).