Skip to main content

GH Joe

Summary

GH Joe is a managed list of GitHub CLI aliases.

Main idea is that each command should be represented by shortest possible sequence of characters (an alias) where the alias does not have to be remembered but it can be mnemotechnically derived from the full command.

For a full list of aliases please see aliases.yml.

Installation

Import list of aliases to your GitHub CLI config file:

curl https://raw.githubusercontent.com/josefpihrt/ghjoe/main/aliases.yml | gh alias import -

Optionally, overwrite existing aliases:

curl https://raw.githubusercontent.com/josefpihrt/ghjoe/main/aliases.yml | gh alias import --clobber -

Commands Aliases

AliasCommand
aalias
bbrowse
ccodespace
erelease
ggist
hauth
iissue
jproject
kcache
llabel
nrun
oconfig
ppr
rrepo
ssearch
tsecret
ustatus
vvariable
wworkflow
xextension

Aliases Creation Rules

Each alias is created according to several simple rules:

  1. Each root command is represented by a single letter.

    • For example issue is represented by i.
  2. Each subcommand/parameter/value is represented by combination of first letter of words it consists of.

    • For example subcommand release delete-asset is represented by rda.
    • For example parameter --exclude-pre-releases is represented by epr.
  3. Parameters are sorted in alphabetical order.

    • For example command pr create --assignee @me --draft --title is represented by pcamdt.