Skip to content

Instantly share code, notes, and snippets.

@PeterMitrano
Created May 4, 2021 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeterMitrano/9b523be7967be6f53df1ad4530d7535b to your computer and use it in GitHub Desktop.
Save PeterMitrano/9b523be7967be6f53df1ad4530d7535b to your computer and use it in GitHub Desktop.
choose_ws.sh
#!/bin/bash
PS3='Choose a workspace type: '
options=("default" "debug")
select opt in "${options[@]}"
do
case $opt in
"default")
source /home/peter/catkin_ws/devel/setup.bash
cd /home/peter/catkin_ws/
catkin profile set default
break
;;
"debug")
source /home/peter/catkin_ws/devel_debug/setup.bash
cd /home/peter/catkin_ws/
catkin profile set debug
break
;;
*) echo "invalid option $REPLY";;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment