jj: Rework jj bookmark main alias
Changed into a function which takes the revision to set the bookmark to as an argument. This should work without interfering much since the bookmark name that the `bookmark set` function _usually_ takes as argument is already given by the alias (always 'main') and thus we do not have to manually provide other arguments. It default to the current working copy just like the command and otherwise can point to any change.
This commit is contained in:
parent
89737536ea
commit
5ab95c724f
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ alias jrb="jj rebase"
|
|||
|
||||
# 'branching' bookmark work
|
||||
alias jb="jj bookmark"
|
||||
alias jbm="jj bookmark set main"
|
||||
jbm() {
|
||||
jj bookmark set -r "${1:-@}" main
|
||||
}
|
||||
|
||||
# remote work
|
||||
alias jrv="jj git remote list"
|
||||
|
|
Loading…
Reference in a new issue