vcs: Add aliases for jj
This commit is contained in:
parent
bcd93eb237
commit
bfb4fadee0
3 changed files with 31 additions and 1 deletions
|
@ -16,7 +16,7 @@ sh = "~"
|
||||||
[vcs.files]
|
[vcs.files]
|
||||||
"vcs/README.md" = { target = "~/NOWHERE", type = "symbolic", if = "false" }
|
"vcs/README.md" = { target = "~/NOWHERE", type = "symbolic", if = "false" }
|
||||||
"vcs/git" = "~/.config"
|
"vcs/git" = "~/.config"
|
||||||
"vcs/jj" = "~/.config/jj"
|
"vcs/jj" = "~/.config"
|
||||||
"vcs/gitignore/config" = "~/.config"
|
"vcs/gitignore/config" = "~/.config"
|
||||||
"vcs/gitignore/local" = "~/.local"
|
"vcs/gitignore/local" = "~/.local"
|
||||||
vcs = "~"
|
vcs = "~"
|
||||||
|
|
30
vcs/jj/sh/alias.d/jj.sh
Normal file
30
vcs/jj/sh/alias.d/jj.sh
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
if ! exist jj; then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
alias j='jj' # necessary for a thing as easy to type?
|
||||||
|
if exist lazyjj; then
|
||||||
|
alias lj="lazyjj"
|
||||||
|
fi
|
||||||
|
alias js="jj status"
|
||||||
|
|
||||||
|
alias jd="jj describe"
|
||||||
|
alias jn="jj new"
|
||||||
|
alias jc="jj commit"
|
||||||
|
|
||||||
|
alias jl='jj log'
|
||||||
|
alias jlo='jj log --summary'
|
||||||
|
alias jloo='jj log --patch'
|
||||||
|
alias jo="jj op log"
|
||||||
|
|
||||||
|
alias jss="jj squash"
|
||||||
|
alias jsi="jj squash --interactive"
|
||||||
|
|
||||||
|
alias je="jj edit"
|
||||||
|
alias jee="jj next --edit"
|
||||||
|
|
||||||
|
alias jun="jj undo"
|
||||||
|
|
||||||
|
alias jp="jj git push"
|
Loading…
Reference in a new issue