dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

vip (217B) [raw]


      1 #!/bin/sh
      2 # vip -- vi on the $PATH
      3 
      4 die() {
      5     echo "$1" 1>&2;
      6     exit 1
      7 }
      8 
      9 if [ -z "$1" ]; then
     10     die "usage: vip progname"
     11 fi
     12 
     13 bin=`which $1`
     14 if [ -z $bin ]; then 
     15     die "$1 not on PATH"
     16 fi
     17 
     18 exec $EDITOR $bin