9ad0ce6482858bd56d828fae9e19a4f32b6d3c3a

Author
Carlo Sala <carlosalag@protonmail.com>
Committer
Carlo Sala <carlosalag@protonmail.com>
Date

Message

fix(magic-enter): avoid unexpected console output

Closes #13290

Diff

 1diff --git a/plugins/magic-enter/magic-enter.plugin.zsh b/plugins/magic-enter/magic-enter.plugin.zsh
 2index c3175b70b1016079cb9e758922644ec5b2f64309..cfb15b60e82e8b95fc99b534c2d7694acc89f05d 100644
 3--- a/plugins/magic-enter/magic-enter.plugin.zsh
 4+++ b/plugins/magic-enter/magic-enter.plugin.zsh
 5@@ -10,9 +10,9 @@ magic-enter() {
 6     return
 7   fi
 8 
 9-  if command jj st &>/dev/null; then # needs to be before git to handle colocated repositories
10+  if command jj st >/dev/null 2>&1; then # needs to be before git to handle colocated repositories
11     BUFFER="$MAGIC_ENTER_JJ_COMMAND"
12-  elif command git rev-parse --is-inside-work-tree &>/dev/null; then
13+  elif command git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
14     BUFFER="$MAGIC_ENTER_GIT_COMMAND"
15   else
16     BUFFER="$MAGIC_ENTER_OTHER_COMMAND"