aboutsummaryrefslogtreecommitdiff
path: root/extra/completions/alacritty.bash
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2022-01-03 21:55:22 +0300
committerGitHub <noreply@github.com>2022-01-03 18:55:22 +0000
commitce59fa4165500d8e242ae7a73e3da065e11e461e (patch)
treedfaaec5872d59d4c2b2e4907e3213134bea7125d /extra/completions/alacritty.bash
parente2b5219eb40eaf36d8255cd87c5202bbb8ba0825 (diff)
downloadalacritty-ce59fa4165500d8e242ae7a73e3da065e11e461e.tar.gz
alacritty-ce59fa4165500d8e242ae7a73e3da065e11e461e.zip
Add title/class CLI parameters to create-window
This adds the ability to pass title and class over IPC via the create-window subcommand, so users can run only one instance for windows of different spurposes in the window managers of their choice.
Diffstat (limited to 'extra/completions/alacritty.bash')
-rw-r--r--extra/completions/alacritty.bash38
1 files changed, 25 insertions, 13 deletions
diff --git a/extra/completions/alacritty.bash b/extra/completions/alacritty.bash
index 7ce57f9d..cc1c1f42 100644
--- a/extra/completions/alacritty.bash
+++ b/extra/completions/alacritty.bash
@@ -29,54 +29,54 @@ _alacritty() {
case "${cmd}" in
alacritty)
- opts=" -q -v -h -V -t -o -e --print-events --ref-test --hold --help --version --title --class --embed --config-file --socket --option --working-directory --command msg help"
+ opts=" -q -v -h -V -o -e -t --print-events --ref-test --hold --help --version --embed --config-file --socket --option --working-directory --command --title --class msg help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
- --title)
+ --embed)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- -t)
+ --config-file)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- --class)
+ --socket)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- --embed)
+ --option)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- --config-file)
+ -o)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- --socket)
+ --working-directory)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- --option)
+ --command)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- -o)
+ -e)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- --working-directory)
+ --title)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- --command)
+ -t)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
- -e)
+ --class)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
@@ -127,7 +127,7 @@ _alacritty() {
return 0
;;
alacritty__msg__create__window)
- opts=" -h -V -e --hold --help --version --working-directory --command "
+ opts=" -h -V -e -t --hold --help --version --working-directory --command --title --class "
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
@@ -146,6 +146,18 @@ _alacritty() {
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
+ --title)
+ COMPREPLY=($(compgen -f "${cur}"))
+ return 0
+ ;;
+ -t)
+ COMPREPLY=($(compgen -f "${cur}"))
+ return 0
+ ;;
+ --class)
+ COMPREPLY=($(compgen -f "${cur}"))
+ return 0
+ ;;
*)
COMPREPLY=()
;;