Skip to content

Instantly share code, notes, and snippets.

@Kagee
Created January 13, 2012 12:37
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 Kagee/1605904 to your computer and use it in GitHub Desktop.
Save Kagee/1605904 to your computer and use it in GitHub Desktop.
pim
#! /bin/bash
if [ -f $1 ]
then
vim $1;
else
touch "$1"
chmod +x "$1"
echo -e "#! /usr/bin/perl\nuse strict;\n\n" > "$1";
vim "$1"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment