Skip to content

Instantly share code, notes, and snippets.

@ahill00
Created January 20, 2012 02:55
Show Gist options
  • Save ahill00/1644679 to your computer and use it in GitHub Desktop.
Save ahill00/1644679 to your computer and use it in GitHub Desktop.
Some bashrc functions for octopress and RVM
function np {
cd ~/octopress/
bundle exec rake new_post["$1"] | cut -d: -f2 | xargs subl
cd -
}
function octo {
cd ~/octopress/
sudo ps aux | grep rackup | grep 4000 | awk '{print $2}' | xargs kill -9
bundle exec rake generate
nohup bundle exec rake preview > ~/octopress/andy.log &
cd -
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment