summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Sala <carlosalag@protonmail.com>2025-09-06 12:19:49 +0800
committerCarlo Sala <carlosalag@protonmail.com>2025-09-06 12:19:49 +0800
commit9ad0ce6482858bd56d828fae9e19a4f32b6d3c3a (patch)
treeb37d7941e33179bf55fb2380dc440eb9dad0c743
parent26863c50b3eaad4b13f7dfa07e06053e1d4834a2 (diff)
downloadzsh-9ad0ce6482858bd56d828fae9e19a4f32b6d3c3a.tar.gz
zsh-9ad0ce6482858bd56d828fae9e19a4f32b6d3c3a.tar.bz2
zsh-9ad0ce6482858bd56d828fae9e19a4f32b6d3c3a.zip
fix(magic-enter): avoid unexpected console output
Closes #13290
-rw-r--r--plugins/magic-enter/magic-enter.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/magic-enter/magic-enter.plugin.zsh b/plugins/magic-enter/magic-enter.plugin.zsh
index c3175b70b..cfb15b60e 100644
--- a/plugins/magic-enter/magic-enter.plugin.zsh
+++ b/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"