Created
January 20, 2012 02:55
-
-
Save ahill00/1644679 to your computer and use it in GitHub Desktop.
Some bashrc functions for octopress and RVM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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