Skip to content

Commit

Permalink
Re-enabled autocomplete if the shell is zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmeet0915 committed Sep 13, 2023
1 parent b463dfb commit 9c691e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions workon_ros_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ function workon_ros {

source $ws_path
echo "Sourced the setup for $ws_name"

if [ -n "$ZSH_VERSION" ]
then
# argcomplete for ros2 & colcon
eval "$(register-python-argcomplete3 ros2)"
eval "$(register-python-argcomplete3 colcon)"
fi

local NEWLINE=$'\n'

Expand Down

0 comments on commit 9c691e4

Please sign in to comment.