summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorValentin Ignatev <valentignatev@gmail.com>2019-10-10 00:37:48 +0300
committerChristian Duerr <contact@christianduerr.com>2019-10-09 23:37:48 +0200
commit4cb5566a9c2d68006ffa97e2f8082ae3ef6c8de4 (patch)
treef8cccdab59503d791b9fb44d0b9b5fb3ee3b1b85 /extra
parent24651a6144e5071f0a72d991734a9b380255156e (diff)
Add --hold CLI flag
This implements --hold flag which keeps Alacritty open after its child process exits. Fixes #1165.
Diffstat (limited to 'extra')
-rw-r--r--extra/alacritty.man3
-rw-r--r--extra/completions/_alacritty1
-rw-r--r--extra/completions/alacritty.bash2
-rw-r--r--extra/completions/alacritty.fish3
4 files changed, 8 insertions, 1 deletions
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 \