Skip to content

Instantly share code, notes, and snippets.

@tednaleid
Created August 26, 2012 05:05
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 tednaleid/3474341 to your computer and use it in GitHub Desktop.
Save tednaleid/3474341 to your computer and use it in GitHub Desktop.
# execute with `mvimvproject <projname>`
function mvimproject() {
SCRIPT='mvimhere.command'
if [ -n "$1" ]
then
SCRIPT=$1.command
fi
cat <<EOF>$SCRIPT
#! /usr/bin/env sh
BASEDIR=\$(dirname \$0)
cd \$BASEDIR
mvim \$BASEDIR
EOF
chmod +x $SCRIPT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment