diff setup @ 315:c6ad8279b076

Support for solarized vim color scheme.
author Edho Arief <edho@myconan.net>
date Sun, 18 Mar 2012 11:33:25 +0700
parents 4eeccee282b1
children 795ad57794a6
line wrap: on
line diff
--- a/setup	Sun Mar 18 11:30:42 2012 +0700
+++ b/setup	Sun Mar 18 11:33:25 2012 +0700
@@ -50,6 +50,8 @@
   fi
   _srcfile="${rcdir}/${2}"
   _dstfile="${HOME}/${3}"
+  _dstdir="${_dstfile%/*}"
+  mkdir -p "${_dstdir}"
   if test ! -h "${_dstfile}"; then
     if test -f "${_dstfile}"; then
       cp "${_dstfile}" "${_dstfile}.bak"
@@ -103,7 +105,8 @@
     done
     _rc "${1}" "tmux" ".tmux.conf"
     _rc "${1}" "hg" ".hgrc"
-    _rc "${1}" "vim" ".vimrc"
+    _rc "${1}" "vimrc" ".vimrc"
+    _rc "${1}" "vim-solarized" ".vim/colors/solarized.vim"
     _rc "${1}" "inputrc" ".inputrc"
     _rc "${1}" "../bin" ".ecos_bin"
   ;;