Skip to content

Instantly share code, notes, and snippets.

@kyanagi
Created January 23, 2013 05:48
Show Gist options
  • Save kyanagi/4602400 to your computer and use it in GitHub Desktop.
Save kyanagi/4602400 to your computer and use it in GitHub Desktop.
function bundle-cd {
local output exit_status
output=`bundle show $1`
exit_status=$?
if [ $exit_status -eq 0 ]; then
cd "$output"
else
echo $output 1>&2
return $exit_status
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment