- 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
This commit is contained in:
parent
99065d2891
commit
b22c0c2b9c
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 21 12:49:12 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||
|
||||
- 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 <socvirnyl.estela@gmail.com>
|
||||
|
||||
|
40
wezterm.spec
40
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
|
||||
|
Loading…
Reference in New Issue
Block a user