From b22c0c2b9c9385a9c8bca33652151a4f9b1af5919c68f3f365f2146dbfe55f3e Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Wed, 21 Dec 2022 12:50:32 +0000 Subject: [PATCH] - Add shell completions for bash, zsh, and fish. - Print version to `.tag` file to let `wezterm -V` or `wezterm --version` command show the version. OBS-URL: https://build.opensuse.org/package/show/X11:terminals/wezterm?expand=0&rev=56 --- wezterm.changes | 7 +++++++ wezterm.spec | 40 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/wezterm.changes b/wezterm.changes index 8f60e24..36470d9 100644 --- a/wezterm.changes +++ b/wezterm.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Dec 21 12:49:12 UTC 2022 - Soc Virnyl Estela + +- Add shell completions for bash, zsh, and fish. +- Print version to `.tag` file to let `wezterm -V` or `wezterm --version` + command show the version. + ------------------------------------------------------------------- Fri Dec 16 15:49:36 UTC 2022 - Soc Virnyl Estela diff --git a/wezterm.spec b/wezterm.spec index 7fedbc5..07ba898 100644 --- a/wezterm.spec +++ b/wezterm.spec @@ -70,11 +70,37 @@ Recommends: %{name} = %{version} %description mux-server Multiplexer server for wezterm for running on a headless system. +%package bash-completion +Summary: Bash Completion for %{name} +Requires: bash-completion +Supplements: (%{name} and bash-completion) +BuildArch: noarch + +%description bash-completion +Bash completion support for %{name}. + +%package fish-completion +Summary: Fish Completion for %{name} +Supplements: (%{name} and fish) +BuildArch: noarch + +%description fish-completion +Fish completion script for %{name}. + +%package zsh-completion +Summary: ZSH Completion for %{name} +Supplements: (%{name} and zsh) +BuildArch: noarch + +%description zsh-completion +Zsh completion script for %{name}. + %prep %autosetup -a1 mkdir -p .cargo -cp %{SOURCE2} .cargo/config +cp %{SOURCE2} .cargo/config.toml tic -vvv -x -o terminfo termwiz/data/%{name}.terminfo +printf "%{version}" > .tag %build %if 0%{?suse_version} > 1500 @@ -140,4 +166,16 @@ install -D -m 0644 assets/shell-completion/fish %{buildroot}%{_datadir}/fish/ven %doc README.md CONTRIBUTING.md %{_bindir}/wezterm-mux-server +%files bash-completion +%{_datadir}/bash-completion/completions/wezterm +%{_datadir}/bash-completion/completions/wezterm-gui + +%files fish-completion +%{_datadir}/fish/vendor_completions.d/wezterm.fish +%{_datadir}/fish/vendor_completions.d/wezterm-gui.fish + +%files zsh-completion +%{_datadir}/zsh/site-functions/_wezterm +%{_datadir}/zsh/site-functions/_wezterm-gui + %changelog