Skip to content

Commit

Permalink
Update default zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Flova committed Feb 21, 2024
1 parent 9f04e63 commit 0e5b566
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bitbots_misc/bitbots_containers/dev/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,35 @@ export PROMPT="%K{black} 🐋 %K{blue}%F{black}%/ %f%k%F{blue}%f " # Pref

# Do ros2 specific things
source /opt/ros/iron/setup.zsh &> /dev/null

# Ignore some deprecation warnings
export PYTHONWARNINGS=ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources

# Limit ROS 2 communication to localhost (can be overridden when needed)
export ROS_DOMAIN_ID=24
export ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST

# Set the default colcon workspace
export COLCON_WS="$HOME/colcon_ws"

# Set the default log level for colcon
export COLCON_LOG_LEVEL=30

# Define a log layout
export RCUTILS_COLORIZED_OUTPUT=1
export RCUTILS_CONSOLE_OUTPUT_FORMAT="[{severity}] [{name}]: {message}"

# Set the default Middleware
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp

# Create a function to update the argcomplete so tab completion works
# This needs to be called every time we source something ROS 2 related
function update_ros2_argcomplete() {
eval "$(register-python-argcomplete3 ros2)"
eval "$(register-python-argcomplete3 colcon)"
}

# Update the tab completion
update_ros2_argcomplete

alias rr='ros2 run'
Expand Down

0 comments on commit 0e5b566

Please sign in to comment.