# HG changeset patch # User Meredith Howard # Date 1407444360 14400 # Node ID 906ce6af31f67a5c0a88492cf7c8b36626409e44 # Parent 390622b4e6676a9b9ee9cc70f3facb903e13cfc3 Get rid of batch file for smarter shell script that can push out to win32 vim diff --git a/.vim/windows-vimfiles.bat b/.vim/windows-vimfiles.bat deleted file mode 100644 --- a/.vim/windows-vimfiles.bat +++ /dev/null @@ -1,4 +0,0 @@ -@ECHO ON - -copy ..\.vimrc %USERPROFILE%\_vimrc -xcopy /s ..\.vim %USERPROFILE%\vimfiles\ diff --git a/.vim/windows-vimfiles.sh b/.vim/windows-vimfiles.sh new file mode 100644 --- /dev/null +++ b/.vim/windows-vimfiles.sh @@ -0,0 +1,21 @@ +#!/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/* +