diff options
author | Valentin Ignatev <valentignatev@gmail.com> | 2019-10-10 00:37:48 +0300 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-10-09 23:37:48 +0200 |
commit | 4cb5566a9c2d68006ffa97e2f8082ae3ef6c8de4 (patch) | |
tree | f8cccdab59503d791b9fb44d0b9b5fb3ee3b1b85 /extra/completions | |
parent | 24651a6144e5071f0a72d991734a9b380255156e (diff) | |
download | alacritty-4cb5566a9c2d68006ffa97e2f8082ae3ef6c8de4.tar.gz alacritty-4cb5566a9c2d68006ffa97e2f8082ae3ef6c8de4.zip |
Add --hold CLI flag
This implements --hold flag which keeps Alacritty open after
its child process exits.
Fixes #1165.
Diffstat (limited to 'extra/completions')
-rw-r--r-- | extra/completions/_alacritty | 1 | ||||
-rw-r--r-- | extra/completions/alacritty.bash | 2 | ||||
-rw-r--r-- | extra/completions/alacritty.fish | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/extra/completions/_alacritty b/extra/completions/_alacritty index c2fb29c2..f074042f 100644 --- a/extra/completions/_alacritty +++ b/extra/completions/_alacritty @@ -11,6 +11,7 @@ _arguments \ "--print-events[print all events to stdout]" \ '(-v)'{-q,-qq}"[reduce the level of verbosity (min is -qq)]" \ "--ref-test[generate ref test]" \ + "--hold[remain open after child process exits]" \ '(-q)'{-v,-vv,-vvv}"[increase the level of verbosity (max is -vvv)]" \ "$ign(-)"{-V,--version}"[print version information]" \ "--class=[define the window class]:class" \ diff --git a/extra/completions/alacritty.bash b/extra/completions/alacritty.bash index d87dd215..d2abda7e 100644 --- a/extra/completions/alacritty.bash +++ b/extra/completions/alacritty.bash @@ -11,7 +11,7 @@ _alacritty() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" prevprev="${COMP_WORDS[COMP_CWORD-2]}" - opts="-h --help -V --version --live-config-reload --no-live-config-reload --persistent-logging --print-events -q -qq -v -vv -vvv --ref-test -e --command --config-file -d --dimensions --position -t --title --embed --class --working-directory" + opts="-h --help -V --version --live-config-reload --no-live-config-reload --persistent-logging --print-events -q -qq -v -vv -vvv --ref-test --hold -e --command --config-file -d --dimensions --position -t --title --embed --class --working-directory" # If `--command` or `-e` is used, stop completing for i in "${!COMP_WORDS[@]}"; do diff --git a/extra/completions/alacritty.fish b/extra/completions/alacritty.fish index 3daa3447..4fb662d3 100644 --- a/extra/completions/alacritty.fish +++ b/extra/completions/alacritty.fish @@ -37,6 +37,9 @@ complete -c alacritty \ -a '(__fish_complete_directories (commandline -ct))' \ -l "working-directory" \ -d "Start shell in specified directory" +complete -c alacritty \ + -l "hold" \ + -d "Remain open after child process exits" # Output complete \ |