.vim/windows-vimfiles.sh

Sun, 19 Oct 2014 01:11:14 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 19 Oct 2014 01:11:14 -0400
changeset 154
72e18304b485
parent 130
906ce6af31f6
child 189
39f8cd12ec5c
permissions
-rw-r--r--

Fixes for trying to set up profile on OpenBSD

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