Missing Logo

Oh My Zsh

Sections

Git

AliasCommand
gagit add
gaagit add --all
grmgit rm
grmcgit rm --cached
gstgit status
gcgit commit -v
gc!git commit -v --amend
gcamgit commit -a -m
gcmsggit commit -m
glgit pull
gupgit pull --rebase
gupagit pull --rebase --autostash
gpgit push
gpoatgit push origin --all && git push origin --tags
gpsupgit push --set-upstream origin $(git_current_branch)
gdgit diff
gdcagit diff --cached
gdsgit diff --staged
gstagit stash push
gstdgit stash drop
gstlgit stash list
gstpgit stash pop
gtsgit tag -s
gbgit branch
gbagit branch -a
gbdgit branch -d
gbDgit branch -D
gbrgit branch --remote
gcbgit checkout -b
gcmgit checkout $(git_main_branch)
gblgit blame -b -w
gclgit clone --recurse-submodules
gcogit checkout
gfagit fetch --all --prune
gloggit log --oneline --decorate --graph
glogagit log --oneline --decorate --graph --all
grbgit rebase
grbagit rebase --abort
grbcgit rebase --continue
grbigit rebase -i
grhgit reset
grhhgit reset --hard
gcleangit clean -id
gpristinegit reset --hard && git clean -dffx
grename <old> <new>Rename old branch to new, including in origin remote

Arch Linux

AliasDescription
pacinInstall packages from the repositories
paclocDisplay information about a package in the local database
paclocsSearch for packages in the local database
paclsorphansList all orphaned packages
pacmirForce refresh of all package lists after updating mirrorlist
pacremRemove packages, including its settings and dependencies
pacrepDisplay information about a package in the repositories
pacrepsSearch for packages in the repositories
pacrmorphansDelete all orphaned packages
pacrepDisplay information about a package in the repositories
pacrepsSearch for packages in the repositories
pacupdUpdate and refresh the local package database
pacupgSync with repositories before upgrading packages
pacfilesSearch package file names for matching strings
paclsList files in a package
pacownShow which package owns a file
yainInstall packages from the repositories, including AUR
pacdisownedList all disowned files in your system
paclistList all installed packages with a short description
pacwebOpen the website of an ArchLinux package

Systemd

AliasCommand
sc-list-unitssystemctl list-units
sc-statussystemctl status
sc-showsystemctl show
sc-startsystemctl start
sc-stopsystemctl stop
sc-restartsystemctl restart
sc-killsystemctl kill
sc-enablesystemctl enable
sc-disablesystemctl disable
sc-enable-nowsystemctl enable --now
sc-disable-nowsystemctl disable --now
sc-rebootsystemctl reboot
sc-poweroffsystemctl poweroff

Miscellaneous

CommandDescription
fffind . -type f -name
H`
T`
G`
L`
ttail -f
mdmkdir -p
rdrmdir
-cd -
take <dir>create directory and cd into it
duddu -d 1 -h
dufdu -sh
fcedit last command in editor
disown <pid>detach job from shell
NUL> /dev/null 2>&1
hsido a case-insensitive search on your command history
ytyoutube download
ytayoutube download audio only
pdfmupdf
imgsxiv
coffeehave a coffee break
tfterraform
extract <file>extracts the archive you pass it, independent of type
x <file>extracts the archive you pass it, independent of type
ss -natllist open ports
catimgdisplay image inside terminal
hexshow file in hex format
copyfilecopy contents of file to clipboard
lsmountscurated list of the mounted filesystems

Bindings

BindingDescription
Ctrl-faccept autosuggested command
Ctrl-jhistory search down
Ctrl-khistory search up
Ctrl-x + eedit current command in editor

Docker

AliasCommand
ddocker
dcdocker container
didocker image
dndocker network
dsdocker system
dvdocker volume

Docker Compose

AliasCommand
dcodocker-compose
dcbdocker-compose build
dcpsdocker-compose ps
dcrestartdocker-compose restart
dcrmdocker-compose rm
dcrdocker-compose run
dcstopdocker-compose stop
dcupdocker-compose up
dcupbdocker-compose up --build
dcupddocker-compose up -d
dcdndocker-compose down
dcldocker-compose logs
dclfdocker-compose logs -f
dcstartdocker-compose start
dckdocker-compose kill

Emoji

AliasDescription
random_emojioutputs a random emoji
random_emoji fruitsoutputs a random emoji from a group
display_emojilist all available emoji
display_emoji fruitslist all available emoji from a group

Maven

AliasCommand
mvncimvn clean install
mvncistmvn clean install -DskipTests
mvncpmvn clean package
mvnctmvn clean test
mvncvmvn clean verify
mvndmvn deploy
mvnjettymvn jetty:run
mvnpmvn package
mvntcmvn tomcat:run
mvn-updatesmvn versions:display-dependency-updates

Nmap

AliasDescription
nmap_fullaggressive full scan that scans all ports, tries to determine OS and service versions
nmap_full_udpsame as full but via UDP
nmap_fastfast scan of the top 300 popular ports
nmap_detect_versionsdetects versions of services and OS, runs on all ports

Rsync

AliasCommand
rsync-copyrsync -avz --progress -h
rsync-moversync -avz --progress -h --remove-source-files
rsync-updatersync -avzu --progress -h
rsync-synchronizersync -avzu --delete --progress -h

Tmux

AliasCommand
tatmux attach -t
tltmux list-sessions

Visual Studio Code

AliasCommand
vsccode .
vscd file filecode --diff file file

AWS / awsume

AliasDescription
acp profileAssumes role, supports MFA
acpClears the profile
aws_profilesLists all available profiles