From 4cb5566a9c2d68006ffa97e2f8082ae3ef6c8de4 Mon Sep 17 00:00:00 2001 From: Valentin Ignatev Date: Thu, 10 Oct 2019 00:37:48 +0300 Subject: Add --hold CLI flag This implements --hold flag which keeps Alacritty open after its child process exits. Fixes #1165. --- extra/alacritty.man | 3 +++ extra/completions/_alacritty | 1 + extra/completions/alacritty.bash | 2 +- extra/completions/alacritty.fish | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) (limited to 'extra') diff --git a/extra/alacritty.man b/extra/alacritty.man index fafb10c3..5f3bf3cb 100644 --- a/extra/alacritty.man +++ b/extra/alacritty.man @@ -14,6 +14,9 @@ However, it does allow configuration of many aspects of the terminal. \fB\-h\fR, \fB\-\-help\fR Prints help information .TP +\fB\-\-hold\fR +Remain open after child process exits +.TP \fB\-\-live\-config\-reload\fR Enable automatic config reloading .TP 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 \ -- cgit