diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-10-25 12:56:05 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-10-27 23:06:29 +0800 |
| commit | 08ad412d7fab4e785e90c7c5ec8b0d9dcbf58cf3 (patch) | |
| tree | aea8ca85ed08a7cf993b41c8e6bb1b731369dc9e /dot-config/fish/conf.d/jj.abbr.fish | |
| parent | ae4f5678844f8d85a5b84fd693d6f4fb630f7bb3 (diff) | |
jj: prompt
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 |
