Skip to content

Instantly share code, notes, and snippets.

@dreww
dreww / newpost.rb
Created December 16, 2011 22:31 — forked from bru/newpost.rb
Creates a new Jekyll post, opens it in a new mvim tab, and adds to the git index
#!/usr/bin/env ruby
require Dir
unless ARGV[0]
puts 'Usage: newpost "the post title"'
exit(-1)
end
blog_root = "/Users/revelation/Projects/studyspace-status/blog"
@dreww
dreww / prompt.sh
Created September 28, 2012 22:30 — forked from tobiassjosten/prompt.sh
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\033[1;33m\]'
c_path='\[\e[0;33m\]'
c_git_clean='\[\e[0;36m\]'
c_git_dirty='\[\e[0;35m\]'
else
c_reset=
c_user=