mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
parent
26863c50b3
commit
9ad0ce6482
1 changed files with 2 additions and 2 deletions
|
|
@ -10,9 +10,9 @@ magic-enter() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command jj st &>/dev/null; then # needs to be before git to handle colocated repositories
|
if command jj st >/dev/null 2>&1; then # needs to be before git to handle colocated repositories
|
||||||
BUFFER="$MAGIC_ENTER_JJ_COMMAND"
|
BUFFER="$MAGIC_ENTER_JJ_COMMAND"
|
||||||
elif command git rev-parse --is-inside-work-tree &>/dev/null; then
|
elif command git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
||||||
BUFFER="$MAGIC_ENTER_GIT_COMMAND"
|
BUFFER="$MAGIC_ENTER_GIT_COMMAND"
|
||||||
else
|
else
|
||||||
BUFFER="$MAGIC_ENTER_OTHER_COMMAND"
|
BUFFER="$MAGIC_ENTER_OTHER_COMMAND"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue