mirror of
https://github.com/bkryza/clang-uml.git
synced 2025-05-16 18:52:49 +08:00
Added autocomplete scripts to Fedora packages
This commit is contained in:
parent
ad4363acaa
commit
29ad94a13c
@ -184,18 +184,19 @@ installed manually. The completion scripts are available in directory:
|
|||||||
* [`packaging/autocomplete`](./packaging/autocomplete)
|
* [`packaging/autocomplete`](./packaging/autocomplete)
|
||||||
|
|
||||||
#### Bash
|
#### Bash
|
||||||
The `clang-uml.bash-completion` script can be either directly loaded to the
|
The `clang-uml` script can be either directly loaded to the
|
||||||
current Bash session using:
|
current Bash session using:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
source clang-uml.bash-completion
|
source clang-uml
|
||||||
```
|
```
|
||||||
|
|
||||||
or the script can be copied to the `/etc/bash_completion.d` on Linux or
|
or the script can be copied to `/usr/share/bash-completion/completions/`
|
||||||
to `/usr/local/etc/bash_completion.d` on `macos` with `Homebrew`.
|
or `/etc/bash_completion.d` on Linux or to `/usr/local/etc/bash_completion.d` on
|
||||||
|
`macos` with `Homebrew`.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo cp clang-uml.bash-completion /etc/bash_completion.d/clang-uml
|
sudo cp packaging/autocomplete/clang-uml /usr/share/bash-completion/completions/
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure autocompletion is enabled in your `~/.bashrc` or `~/.bash_profile`:
|
Make sure autocompletion is enabled in your `~/.bashrc` or `~/.bash_profile`:
|
||||||
|
@ -47,6 +47,10 @@ generated in PlantUML format.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
mkdir -p %{buildroot}/%{_datadir}/bash-completion/completions
|
||||||
|
mkdir -p %{buildroot}/%{_datadir}/zsh/site-functions
|
||||||
|
cp -p packaging/autocomplete/clang-uml %{buildroot}/%{_datadir}/bash-completion/completions/clang-uml
|
||||||
|
cp -p packaging/autocomplete/_clang-uml %{buildroot}/%{_datadir}/zsh/site-functions/_clang-uml
|
||||||
rm -f %{buildroot}/%{_infodir}/dir
|
rm -f %{buildroot}/%{_infodir}/dir
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -59,7 +63,8 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/clang-uml
|
%{_bindir}/clang-uml
|
||||||
|
%{_datadir}/bash-completion/completions/clang-uml
|
||||||
|
%{_datadir}/zsh/site-functions/_clang-uml
|
||||||
%doc CHANGELOG.md README.md AUTHORS.md LICENSE.md
|
%doc CHANGELOG.md README.md AUTHORS.md LICENSE.md
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user