.vim/windows-vimfiles.sh

Tue, 02 Jun 2015 13:52:20 -0700

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 02 Jun 2015 13:52:20 -0700
changeset 188
ae4cf35b50ab
parent 130
906ce6af31f6
child 189
39f8cd12ec5c
permissions
-rw-r--r--

open unite inside my split

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