summaryrefslogtreecommitdiff
path: root/dot-config/fish/conf.d/jj.abbr.fish
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-10-25 12:56:05 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-10-27 23:06:29 +0800
commit08ad412d7fab4e785e90c7c5ec8b0d9dcbf58cf3 (patch)
treeaea8ca85ed08a7cf993b41c8e6bb1b731369dc9e /dot-config/fish/conf.d/jj.abbr.fish
parentae4f5678844f8d85a5b84fd693d6f4fb630f7bb3 (diff)
jj: prompt
Diffstat (limited to 'dot-config/fish/conf.d/jj.abbr.fish')
-rw-r--r--dot-config/fish/conf.d/jj.abbr.fish18
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