Skip to content

Aliases

LazyJJ provides aliases that add value beyond built-in JJ commands. For shortcuts to native commands (st, d, n, e, ll), see lazyjj-shortcuts.toml.

Philosophy: Value-Add Over Shortcuts

LazyJJ’s approach to aliases:

  • Value-add aliases: Do something Git or vanilla JJ don’t (these are in the main reference)
  • Pure shortcuts: Just shorter names for existing commands (separate file)

This keeps the main aliases file focused on LazyJJ’s unique contributions to the JJ workflow.

Value-Add Aliases

These aliases add flags or combine commands beyond what JJ provides natively:

Diff Aliases

CommandShortcutJJ CommandPurpose
diff-summarydiffsdiff --summary --no-pagerCompact diff summary
diff-filesdifflsdiff --name-only --no-pagerList changed files only

Log Aliases

CommandShortcutJJ CommandPurpose
log-shortllog --limit 10Quick log (last 10 commits)
log-historyhistlog --no-pagerFull history without pager

Git Aliases

CommandShortcutJJ CommandPurpose
git-fetchgfgit fetchFetch from remote

Shortcuts

LazyJJ also provides shortcuts to native JJ commands via lazyjj-shortcuts.toml:

ShortcutJJ Command
ststatus
ddiff
lllog
nnew
eedit

Examples

Terminal window
# Quick workflow using shortcuts
jj st # Check what's changed
jj d # See the diff
jj n # Create new commit
jj l # See recent history (last 10)
# Using value-add aliases
jj diff-files # Just file names
jj diff-summary # Summary of changes
jj log-history # Full log without pager
# Fetch latest
jj git-fetch # Same as 'jj git fetch'

Customizing Aliases

To add your own aliases or override LazyJJ’s, create a file in ~/.config/jj/conf.d/ that sorts after lazyjj-*:

~/.config/jj/conf.d/zzz-my-aliases.toml
[aliases]
# Add custom aliases
mylog = ["log", "--limit", "5", "-T", "builtin_log_compact"]
# Override a shortcut
st = ["status", "--no-pager"]

Project by Ernesto Jiménez Ernesto Jiménez Bluesky GitHub