.vim/windows-vimfiles.sh

Thu, 07 Aug 2014 16:46:00 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 07 Aug 2014 16:46:00 -0400
changeset 130
906ce6af31f6
child 189
39f8cd12ec5c
permissions
-rw-r--r--

Get rid of batch file for smarter shell script that can push out to win32 vim

#!/bin/bash

set -euo pipefail
IFS=$'\n\t'

if [ ! -L ~/userprofile ]; then
  echo "Please link ~/userprofile"
fi

USERPROFILE="$(readlink ~/userprofile)"

cd `hg root`

cp -vu .vimrc ${USERPROFILE}/_vimrc

if [ ! -d ${USERPROFILE}/vimfiles ]; then
  mkdir ${USERPROFILE}/vimfiles
fi

cp -vuRL -t ${USERPROFILE}/vimfiles .vim/*

mercurial