Skip to content

Commit

Permalink
fix wrong if condition for wsl detection
Browse files Browse the repository at this point in the history
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
  • Loading branch information
musou1500 and akinomyoga authored Sep 22, 2024
1 parent e48a925 commit 2ba9a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core-complete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2562,7 +2562,7 @@ function ble/complete/source:command/.print-command {
if [[ ! $COMPV ]]; then
shopt -q no_empty_cmd_completion && return 0
slow_compgen=1
elif [[ :$PATH: == *:/mnt/*:* && ble/base/is-wsl ]]; then
elif [[ :$PATH: == *:/mnt/*:* ]] && ble/base/is-wsl; then
slow_compgen=1
elif [[ $OSTYPE == cygwin* ]]; then
case $COMPV in
Expand Down

0 comments on commit 2ba9a80

Please sign in to comment.