aboutsummaryrefslogtreecommitdiff
path: root/extra/completions/alacritty.bash
diff options
context:
space:
mode:
Diffstat (limited to 'extra/completions/alacritty.bash')
-rw-r--r--extra/completions/alacritty.bash46
1 files changed, 44 insertions, 2 deletions
diff --git a/extra/completions/alacritty.bash b/extra/completions/alacritty.bash
index bb70ef3f..f7f2caf1 100644
--- a/extra/completions/alacritty.bash
+++ b/extra/completions/alacritty.bash
@@ -15,12 +15,18 @@ _alacritty() {
alacritty,help)
cmd="alacritty__help"
;;
+ alacritty,migrate)
+ cmd="alacritty__migrate"
+ ;;
alacritty,msg)
cmd="alacritty__msg"
;;
alacritty__help,help)
cmd="alacritty__help__help"
;;
+ alacritty__help,migrate)
+ cmd="alacritty__help__migrate"
+ ;;
alacritty__help,msg)
cmd="alacritty__help__msg"
;;
@@ -55,7 +61,7 @@ _alacritty() {
case "${cmd}" in
alacritty)
- opts="-q -v -o -e -T -h -V --print-events --ref-test --embed --config-file --socket --option --working-directory --hold --command --title --class --help --version msg help"
+ opts="-q -v -o -e -T -h -V --print-events --ref-test --embed --config-file --socket --option --working-directory --hold --command --title --class --help --version msg migrate help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
@@ -113,7 +119,7 @@ _alacritty() {
return 0
;;
alacritty__help)
- opts="msg help"
+ opts="msg migrate help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
@@ -140,6 +146,20 @@ _alacritty() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
+ alacritty__help__migrate)
+ opts=""
+ if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
+ return 0
+ fi
+ case "${prev}" in
+ *)
+ COMPREPLY=()
+ ;;
+ esac
+ COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
+ return 0
+ ;;
alacritty__help__msg)
opts="create-window config"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
@@ -182,6 +202,28 @@ _alacritty() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
+ alacritty__migrate)
+ opts="-c -d -i -s -h --config-file --dry-run --skip-imports --skip-renames --silent --help"
+ if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
+ return 0
+ fi
+ case "${prev}" in
+ --config-file)
+ COMPREPLY=($(compgen -f "${cur}"))
+ return 0
+ ;;
+ -c)
+ COMPREPLY=($(compgen -f "${cur}"))
+ return 0
+ ;;
+ *)
+ COMPREPLY=()
+ ;;
+ esac
+ COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
+ return 0
+ ;;
alacritty__msg)
opts="-s -h --socket --help create-window config help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then