Skip to content

Commit

Permalink
Merge pull request #1 from theimpossibleastronaut/pr440-reviewed
Browse files Browse the repository at this point in the history
Pr440 reviewed
  • Loading branch information
ccoVeille authored Mar 31, 2024
2 parents e58632b + 97bf7c9 commit 8c1b251
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
10 changes: 9 additions & 1 deletion completions/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Shell completion scripts

Please refer to each folder about how to install completion for `rmw` to your shell
By default, rmw completions are installed when rmw is installed (This can be
disabled by using '-Dinstall_shell_completions' during meson setup). If they
aren't present on your system, you can install a shell completion manually by
getting the completion from the rmw source package or git repository. See the
links below for specific installation instructions for each completion.


## Fish

[Where to put completions](https://fishshell.com/docs/current/completions.html#where-to-put-completions)
4 changes: 0 additions & 4 deletions completions/fish/README.md

This file was deleted.

4 changes: 2 additions & 2 deletions completions/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ fish_comp = dependency('fish', required: false)

if get_option('install_shell_completions')
fish_files = files(
'fish/rmw.fish',
join_paths('fish', 'rmw.fish'),
)

# default location
fish_install_dir = get_option('datadir') + '/fish/vendor_completions.d'
fish_install_dir = join_paths(get_option('datadir'), 'fish', 'vendor_completions.d')

if fish_comp.found()
# when needed we overload the variable
Expand Down
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ main_bin = executable(
)

subdir ('man')
subdir('completions')

if get_option('install_shell_completions')
subdir('completions')
endif

if get_option('build_tests')
subdir ('test')
Expand Down

0 comments on commit 8c1b251

Please sign in to comment.