add a few more files to copy, simplify

Sat, 17 Feb 2018 02:05:23 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 17 Feb 2018 02:05:23 -0500
changeset 685
691e15efff36
parent 684
217647e6c878
child 686
99509d1705c9

add a few more files to copy, simplify

.vim/windows-vimfiles.sh file | annotate | diff | comparison | revisions
--- a/.vim/windows-vimfiles.sh
+++ b/.vim/windows-vimfiles.sh
@@ -1,7 +1,5 @@
-#!/bin/bash
-
-set -euo pipefail
-IFS=$'\n\t'
+#!/bin/sh
+set -eu
 
 if [ ! -L ~/userprofile ]; then
   echo "Please link ~/userprofile"
@@ -11,17 +9,19 @@ USERPROFILE="$(readlink ~/userprofile)"
 
 cd `hg root`
 
-cp -vu .vimrc ${USERPROFILE}/_vimrc
+mkdir -p ${USERPROFILE}/vimfiles
 
-if [ ! -d ${USERPROFILE}/vimfiles ]; then
-  mkdir ${USERPROFILE}/vimfiles
-fi
+cp -vu .vimrc ${USERPROFILE}/_vimrc
 
 cp -vuRL -t ${USERPROFILE}/vimfiles .vim/*
 
-cp -vu .vimperatorrc ${USERPROFILE}/
+cp -vuRL -t ${USERPROFILE}/ \
+  .lib \
+  .ctags \
+  .perltidyrc \
+  .replyrc
 
-mkdir ${USERPROFILE}/{css,js} &>/dev/null || true
+mkdir -p ${USERPROFILE}/{css,js}
 cp -vuRL -t ${USERPROFILE}/css .css/*
 cp -vuRL -t ${USERPROFILE}/js .js/*
 

mercurial