Skip to content

Commit

Permalink
completions: ish: do not force return code 0
Browse files Browse the repository at this point in the history
  • Loading branch information
gportay committed May 6, 2024
1 parent bc94b22 commit 3871e6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions completions/ish
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ _ish()
done
compopt -o nospace
COMPREPLY=($(compgen -P "$prefix" -W "${wordlist[*]}" -S '\:' -- "$realcur"))
return 0
return
;;
--debug-fd)
local fds
mapfile -t fds < <(for fd in /proc/self/fd/*; do echo "${fd##*/}"; done)
COMPREPLY=($(compgen -W "${fds[*]}" -- "$cur"))
return 0
return
;;
--debug-ignore)
local prefix realcur wordlist
Expand All @@ -95,7 +95,7 @@ _ish()
done
compopt -o nospace
COMPREPLY=($(compgen -P "$prefix" -W "${wordlist[*]}" -S '\|' -- "$realcur"))
return 0
return
;;
--exec-ignore)
local prefix realcur wordlist
Expand All @@ -111,7 +111,7 @@ _ish()
done
compopt -o nospace
COMPREPLY=($(compgen -P "$prefix" -W "${wordlist[*]}" -S '\|' -- "$realcur"))
return 0
return
;;
--path-resolution-ignore)
local prefix realcur wordlist
Expand All @@ -127,7 +127,7 @@ _ish()
done
compopt -o nospace
COMPREPLY=($(compgen -P "$prefix" -W "${wordlist[*]}" -S '\|' -- "$realcur"))
return 0
return
;;
esac

Expand Down

0 comments on commit 3871e6a

Please sign in to comment.