fix(magic-enter): avoid unexpected console output

Closes #13290
master
Carlo Sala 6 months ago
parent 26863c50b3
commit 9ad0ce6482
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A
  1. 4
      plugins/magic-enter/magic-enter.plugin.zsh

@ -10,9 +10,9 @@ magic-enter() {
return
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"
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"
else
BUFFER="$MAGIC_ENTER_OTHER_COMMAND"

Loading…
Cancel
Save