diff options
| author | Kirill Chibisov <contact@kchibisov.com> | 2025-05-26 20:17:50 +0900 |
|---|---|---|
| committer | Kirill Chibisov <contact@kchibisov.com> | 2025-05-28 14:16:36 +0900 |
| commit | 9eb68039dcb3edf9c87d253532a3ddd6c3cb8c4e (patch) | |
| tree | ded3f99487fd9aedde54934099ae33ce5d517ec5 /extra | |
| parent | ee48fad2cff393053cb0f4d4c890d8da616f317f (diff) | |
| download | r-alacritty-9eb68039dcb3edf9c87d253532a3ddd6c3cb8c4e.tar.gz r-alacritty-9eb68039dcb3edf9c87d253532a3ddd6c3cb8c4e.tar.bz2 r-alacritty-9eb68039dcb3edf9c87d253532a3ddd6c3cb8c4e.zip | |
Bump all dependencies
Diffstat (limited to 'extra')
| -rw-r--r-- | extra/completions/alacritty.bash | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/extra/completions/alacritty.bash b/extra/completions/alacritty.bash index e2213b75..bfa0b5c9 100644 --- a/extra/completions/alacritty.bash +++ b/extra/completions/alacritty.bash @@ -1,12 +1,16 @@ _alacritty() { local i cur prev opts cmd COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + cur="$2" + else + cur="${COMP_WORDS[COMP_CWORD]}" + fi + prev="$3" cmd="" opts="" - for i in ${COMP_WORDS[@]} + for i in "${COMP_WORDS[@]:0:COMP_CWORD}" do case "${cmd},${i}" in ",$1") |