Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (20 sloc) 350 Bytes
#!/bin/bash
#
# based off vimx
help() {
echo 'usage: vimx [params] file'
echo
echo ' create and edit executable bash script under ~/bin'
echo
echo
exit 1
}
[ "$1" == "--help" ] && help
set -e
eval "thefile=\${$#}"
if [[ "$thefile" =~ / ]]; then
echo "only filenames without paths allowed"
exit -1
fi
cd ~/bin
vimx "$@"