comparison 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
comparison
equal deleted inserted replaced
314:30ccb356a94a 315:c6ad8279b076
48 _echo "Invalid command." 48 _echo "Invalid command."
49 return 49 return
50 fi 50 fi
51 _srcfile="${rcdir}/${2}" 51 _srcfile="${rcdir}/${2}"
52 _dstfile="${HOME}/${3}" 52 _dstfile="${HOME}/${3}"
53 _dstdir="${_dstfile%/*}"
54 mkdir -p "${_dstdir}"
53 if test ! -h "${_dstfile}"; then 55 if test ! -h "${_dstfile}"; then
54 if test -f "${_dstfile}"; then 56 if test -f "${_dstfile}"; then
55 cp "${_dstfile}" "${_dstfile}.bak" 57 cp "${_dstfile}" "${_dstfile}.bak"
56 _echo "${_dstfile} backed up to ${_dstfile}.bak" 58 _echo "${_dstfile} backed up to ${_dstfile}.bak"
57 elif test -d "${_dstfile}"; then 59 elif test -d "${_dstfile}"; then
101 for i in tcsh bash zsh; do 103 for i in tcsh bash zsh; do
102 _"${i}" "${1}" 104 _"${i}" "${1}"
103 done 105 done
104 _rc "${1}" "tmux" ".tmux.conf" 106 _rc "${1}" "tmux" ".tmux.conf"
105 _rc "${1}" "hg" ".hgrc" 107 _rc "${1}" "hg" ".hgrc"
106 _rc "${1}" "vim" ".vimrc" 108 _rc "${1}" "vimrc" ".vimrc"
109 _rc "${1}" "vim-solarized" ".vim/colors/solarized.vim"
107 _rc "${1}" "inputrc" ".inputrc" 110 _rc "${1}" "inputrc" ".inputrc"
108 _rc "${1}" "../bin" ".ecos_bin" 111 _rc "${1}" "../bin" ".ecos_bin"
109 ;; 112 ;;
110 *) 113 *)
111 _help 114 _help