File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "hooks": [
33 "share/ros2cli/environment/ros2-argcomplete.bash",
4+ "share/ros2cli/environment/ros2-argcomplete.fish",
45 "share/ros2cli/environment/ros2-argcomplete.zsh"
56 ]
67}
Original file line number Diff line number Diff line change 1+ # Copyright 2017-2026 Open Source Robotics Foundation, Inc.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ # Register ros2 tab-completion for fish shell via argcomplete.
16+ # Use "| source" (pipe into source) so that multi-line output is handled
17+ # correctly — fish command substitution (…) would join lines with spaces.
18+
19+ if type -q register-python-argcomplete
20+ register-python-argcomplete --shell fish ros2 | source
21+ else if type -q register-python-argcomplete3
22+ register-python-argcomplete3 --shell fish ros2 | source
23+ end
Original file line number Diff line number Diff line change 11source;share/ros2cli/environment/ros2-argcomplete.bash
2+ source;share/ros2cli/environment/ros2-argcomplete.fish
23source;share/ros2cli/environment/ros2-argcomplete.zsh
Original file line number Diff line number Diff line change 2121 ]),
2222 ('share/ros2cli/environment' , [
2323 'completion/ros2-argcomplete.bash' ,
24- 'completion/ros2-argcomplete.zsh'
24+ 'completion/ros2-argcomplete.fish' ,
25+ 'completion/ros2-argcomplete.zsh' ,
2526 ]),
2627 ],
2728 package_data = {'' : ['py.typed' ]},
You can’t perform that action at this time.
0 commit comments