Skip to content
AnthodevPublic

About

Jujutsu aliases plugin for Fish shell

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jj.fish

Jujutsu (jj) aliases plugin for Fish shell.

Installation

Install with Fisher:

fisher install anthodev/jj.fish

Aliases

Changes

Alias Command Description
jjn [arg] jj new [arg] Create new change
jjnd jj new develop Create new change on develop
jjnm jj new main Create new change on main
jje <arg> jj edit <arg> Edit a change
jjs jj status Show status
jjf <arg> jj log | grep <arg> Search in log
jjdm <arg> jj describe -m <arg> Describe change with message
jjr jj resolve Resolve conflicts
jja <arg> jj abandon <arg> Abandon a change
jjh jj edit 'heads(@::)' Edit head of working copy
jju jj undo Undo last operation
jjsq jj squash -u Squash into the parent using the parent's message
jjwcl jj log -r 'mutable() ~ ancestors(develop@origin) ~ ancestors(remote_bookmarks())' View which commits can be cleaned up
jjcl jj abandon 'mutable() ~ ancestors(develop@origin) ~ ancestors(remote_bookmarks())' Clean up abandoned branches and commits

Workspaces

Alias Command Description
jjwa <path> <revision> jj workspace add --revision <revision> --colocate -- <path> Create a workspace and associated Git worktree at the given path
jjwr <workspace> jj workspace remove -- <workspace> Remove the named workspace and its files

Both arguments to jjwa are required. jjwr takes a workspace name, not a path or change ID.

Warning

jjwr removes the workspace directory and its contents. It is not an alias for jj workspace forget.

These commands follow the JJ 0.46.0 workspace documentation.

Rebase

Alias Command Description
jjrd jj rebase -d develop Rebase onto develop
jjrb <arg> jj rebase -s <arg> Rebase from source
jjrbd <arg> jj rebase -s <arg> -d develop Rebase from source onto develop

Git

Alias Command Description
jjgf jj git fetch Git fetch
jjgp jj git push Git push

Bookmarks

Alias Command Description
jjba jj bookmark advance Advance bookmark
jjbc <arg> jj bookmark create <arg> Create a bookmark
jjbt <arg> jj bookmark track <arg> Track a bookmark
jjbu <arg> jj bookmark untrack <arg> Untrack a bookmark
jjbf <arg> jj bookmark forget <arg> Forget a bookmark
jjbl jj bookmark list List bookmarks

Completions

All aliases have tab completions with descriptions. Commands with revision, bookmark, or workspace arguments provide dynamic completions. jjwa completes directory paths for its first argument and revisions for its second; jjwr completes workspace names.

Verification

With Fish, Git, and JJ 0.46.0 available, run:

fish --no-config tests/workspaces.fish

The regression script uses a temporary repository, creates and removes real workspaces, checks completions, and cleans up its fixture on exit. It does not operate on your existing workspaces.

About

Jujutsu aliases plugin for Fish shell

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages