This file contains hidden or 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
| # Full github repo here: https://github.com/sts10/ink | |
| function octo_new { | |
| cwd=$(pwd) #save pwd as cwd | |
| cd /Users/$USER/Documents/code/sts10.github.io | |
| rake new_post["$1"] | |
| echo "Creating new octopress post called \""$1"\"" |
This file contains hidden or 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 octo_new { | |
| cwd=$(pwd) #save pwd as cwd | |
| cd /Users/$USER/Documents/code/sts10.github.io | |
| echo "Creating new octopress post called \""$1"\"" | |
| rake new_post["$1"] | |
| cd source/_posts | |
| FILENAME=`ls -t | head -1` | |
This file contains hidden or 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
| # Add this parse_git_dirty function. | |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*" | |
| } | |
| # Replace your parse_git_branch function with this one. | |
NewerOlder