Skip to content

Instantly share code, notes, and snippets.

@morganp
Created March 1, 2014 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morganp/9295667 to your computer and use it in GitHub Desktop.
Save morganp/9295667 to your computer and use it in GitHub Desktop.
Helpful script for launching Octopress posts in an editor. just `edit_post vim`
#!/bin/bash
editor="mvim"
post_path="source/_posts/"
for OUTPUT in $(ls $post_path | grep $1)
do
file_list="$file_list $post_path$OUTPUT"
done
$editor $file_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment