diff options
author | a-kenji <aks.kenji@protonmail.com> | 2021-05-10 17:24:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-10 17:24:52 +0200 |
commit | ba4e23b163eb4a4858d9e5c2906f3caba443c994 (patch) | |
tree | 2dbf111fd1dcdc62d91c3c2eba0b38fa02b9ba39 | |
parent | afcc990e696fbcfef61addc576b2e5485fe7e27f (diff) | |
parent | e2514b411cf168aa970a558c66ee0cb937c0a30c (diff) |
Merge pull request #480 from a-kenji/dump-config-exit
Fix exit code on `dump-default-config`
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/main.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 90205cdbc..19105b76c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * Add more functionality to unbinding the default keybindings (https://github.com/zellij-org/zellij/pull/468) * Terminal compatibility: fix support for CSI subparameters (https://github.com/zellij-org/zellij/pull/469) * Move the sync command to tab mode (https://github.com/zellij-org/zellij/pull/412) +* Fix exit code of `dump-default-config` (https://github.com/zellij-org/zellij/pull/480) * Feature: Switch tabs using `Alt + h/l` in normal mode if there are no panes in the direction (https://github.com/zellij-org/zellij/pull/471) ## [0.8.0] - 2021-05-07 diff --git a/src/main.rs b/src/main.rs index 12998d4d6..ffc2373e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,7 +45,7 @@ pub fn main() { CliArgs::clap().gen_completions_to("zellij", shell, &mut out); } else if let Some(crate::cli::ConfigCli::Setup { .. }) = opts.option { setup::dump_default_config().expect("Failed to print to stdout"); - std::process::exit(1); + std::process::exit(0); } else { atomic_create_dir(&*ZELLIJ_TMP_DIR).unwrap(); atomic_create_dir(&*ZELLIJ_TMP_LOG_DIR).unwrap(); |