Skip to content

Instantly share code, notes, and snippets.

View icolwell's full-sized avatar
✌️

Ian Colwell icolwell

✌️
View GitHub Profile
@icolwell
icolwell / rs.bash
Created January 26, 2024 03:56
Easily switch between ROS1 and ROS2 terminal environments
#!/bin/bash
# This script is meant to be sourced by your bashrc
# It gives you the "rs" function for easily switching between ROS1 and ROS2
rs()
{
ROS_VER="${1:-1}"
if [ "$ROS_VER" == "1" ]; then