We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9357ea commit 819e695Copy full SHA for 819e695
.oh-my-zsh/ctrl-branch/ctrl-branch.plugin.zsh
@@ -23,17 +23,22 @@ ctrl-branch-command() {
23
branch=${branch%% *}
24
BRANCHES+=($branch)
25
26
- ## get shortcut
+ ## assign shortcuts
27
# XXX get symbol shortcut instead of numeric
28
# XXX empty labels when exhausted
29
- # XXX [m] always main
30
- HOTKEYS+=($i)
31
- ((i++))
+
+ # [m] always main
+ if [[ $branch == "main" ]]; then
32
+ HOTKEYS+=("m")
33
+ else
34
+ HOTKEYS+=($i)
35
+ ((i++))
36
+ fi
37
done
38
39
i=1
40
for m in $MENU; do
- print $HOTKEYS[$i] $m
41
+ print $HOTKEYS[$i]")" $m
42
((i++))
43
44
0 commit comments