Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ros2cli/colcon.pkg
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"hooks": [
"share/ros2cli/environment/ros2-argcomplete.bash",
"share/ros2cli/environment/ros2-argcomplete.fish",
"share/ros2cli/environment/ros2-argcomplete.zsh"
]
}
20 changes: 20 additions & 0 deletions ros2cli/completion/ros2-argcomplete.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2017-2026 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Register ros2 tab-completion for fish shell via argcomplete.
if type -q register-python-argcomplete
register-python-argcomplete --shell fish ros2 | source
else if type -q register-python-argcomplete3
register-python-argcomplete3 --shell fish ros2 | source
end
1 change: 1 addition & 0 deletions ros2cli/resource/package.dsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source;share/ros2cli/environment/ros2-argcomplete.bash
source;share/ros2cli/environment/ros2-argcomplete.fish
source;share/ros2cli/environment/ros2-argcomplete.zsh
3 changes: 2 additions & 1 deletion ros2cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
]),
('share/ros2cli/environment', [
'completion/ros2-argcomplete.bash',
'completion/ros2-argcomplete.zsh'
'completion/ros2-argcomplete.fish',
'completion/ros2-argcomplete.zsh',
]),
],
package_data={'': ['py.typed']},
Expand Down