diff options
Diffstat (limited to 'dot-config/fish/conf.d/jj.abbr.fish')
| -rw-r--r-- | dot-config/fish/conf.d/jj.abbr.fish | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dot-config/fish/conf.d/jj.abbr.fish b/dot-config/fish/conf.d/jj.abbr.fish new file mode 100644 index 00000000..3611d60c --- /dev/null +++ b/dot-config/fish/conf.d/jj.abbr.fish @@ -0,0 +1,18 @@ +abbr -a g jj +abbr -a gp 'jj git push --tracked' +abbr -a gpd 'jj git push --deleted' +abbr -a gs 'jj st' +abbr -a gl 'jj log' +abbr -a gc 'jj commit -m' +abbr -a gb 'jj bookmark' +abbr -a gi 'jj --ignore-immutable' +abbr -a gr 'jj git remote' +function gd + if test (count $argv) -ge 2 + jj diff --from $argv[1] --to $argv[2] + else if test (count $argv) -ge 1 + jj diff --from $argv[1] --to @ + else + jj diff --from @- --to @ + end +end |
