Skip to content

Instantly share code, notes, and snippets.

@zchen24
Forked from jbohren/wstool_aliases.bash
Created April 25, 2014 14:21
Show Gist options
  • Save zchen24/11291269 to your computer and use it in GitHub Desktop.
Save zchen24/11291269 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Set the workspace to the current directory
alias wspwd='export ROS_WORKSPACE=$(pwd)'
# Save the workspace used in this shell as the current workspace
alias wssave='echo -e "$ROS_WORKSPACE" > ~/.curws'
# Load the saved workspace into this shell
alias wsload='source $(cat ~/.curws)/setup.bash'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment