Skip to content

Instantly share code, notes, and snippets.

@Cohen-Carlisle
Last active June 21, 2016 01:30
Show Gist options
  • Save Cohen-Carlisle/93f2d8e2db095e5fcc3499c8a646cbfd to your computer and use it in GitHub Desktop.
Save Cohen-Carlisle/93f2d8e2db095e5fcc3499c8a646cbfd to your computer and use it in GitHub Desktop.
rort
#!/bin/bash
xdg-open &>/dev/null https://www.railstutorial.org/book/filling_in_the_layout#cha-filling_in_the_layout &
#!/bin/bash
DIR=`dirname "${BASH_SOURCE[0]}"`
STR=`echo ${1//\//\\\/}`
sed -i "s/http[^ ]*/$STR/" $DIR/rort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment