.vim/windows-vimfiles.sh

Sun, 29 Mar 2015 17:52:22 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 29 Mar 2015 17:52:22 -0400
changeset 174
d94a247836c8
parent 130
906ce6af31f6
child 189
39f8cd12ec5c
permissions
-rw-r--r--

move some basics into a common profile

#!/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