Skip to content

Commit

Permalink
Don't run inside Midnight Commander
Browse files Browse the repository at this point in the history
Fixes issue #269.
  • Loading branch information
marlonrichert committed May 29, 2021
1 parent e8563df commit 114c857
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zsh-autocomplete.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/zsh

# Don't run if we're in the subshell started by Midnight Commander.
# See https://github.com/marlonrichert/zsh-autocomplete/issues/269
[[ -v MC_SID ]] &&
return

setopt NO_singlelinezle
() {
emulate -L zsh -o NO_aliases
Expand Down

0 comments on commit 114c857

Please sign in to comment.