annotate setup @ 484:487e8d6b9081

Remove blank last line.
author edogawaconan <me@myconan.net>
date Fri, 01 Nov 2013 17:21:54 +0900
parents 20521d872fab
children 347e30690879
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
ddd721f10cb8 Unified installer/uninstaller.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
1 #!/bin/sh
ddd721f10cb8 Unified installer/uninstaller.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
2
404
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
3 # This script is bourne-shell compatible.
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
4 # Or at least it is when I last tested it in Solaris 10.
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
5
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
6 # Ensure no variable is empty when used.
325
795ad57794a6 [setup] Returning solaris compatibility.
Edho Arief <edho@myconan.net>
parents: 315
diff changeset
7 set -u
404
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
8 # Stop on any error.
325
795ad57794a6 [setup] Returning solaris compatibility.
Edho Arief <edho@myconan.net>
parents: 315
diff changeset
9 set -e
795ad57794a6 [setup] Returning solaris compatibility.
Edho Arief <edho@myconan.net>
parents: 315
diff changeset
10
404
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
11 # Get directory where this script and dotfiles are located.
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
12 # $0 contains either full path when executed from a PATH (godwhy)
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
13 # or with complete path or ./<scriptname> when executed that way.
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
14 # Therefore it's safe to use dirname in this case.
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
15 basedir="`dirname "${0}"`"
404
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
16
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
17 # To get actual path, go to the directory and pwd from it.
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
18 cd "${basedir}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
19 basedir="`pwd`"
404
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
20
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
21 # FIXME: test existence of the directories.
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
22 # dotfiles
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
23 rcdir="${basedir}/rc"
404
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
24 # misc scripts
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
25 bindir="${basedir}/bin"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
26
471
9af2e1cd964e Add test for $HOME writability.
edogawaconan <me@myconan.net>
parents: 467
diff changeset
27 # Make sure $HOME points somewhere and writable.
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
28 test -n "${HOME}" || exit 1
471
9af2e1cd964e Add test for $HOME writability.
edogawaconan <me@myconan.net>
parents: 467
diff changeset
29 test -w "${HOME}" || exit 1
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
30
404
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
31 # A safe echo.
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
32 _echo() {
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
33 _echon "${*}"; printf "\n"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
34 }
404
c171c29e13f5 A bit of documentation.
Edho Arief <edho@myconan.net>
parents: 393
diff changeset
35 # A safe and cross platform echo -n.
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
36 _echon() {
338
94d0e4826d28 Cosmetics.
Edho Arief <edho@myconan.net>
parents: 332
diff changeset
37 printf '%s' "${*}"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
38 }
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
39
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
40 _tcsh() {
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
41 case "$1" in
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
42 uninstall|install)
332
db66d53e10ea Canonical name for configs.
Edho Arief <edho@myconan.net>
parents: 325
diff changeset
43 _rc "${1}" "cshrc" ".ecos_tcsh"
246
4eeccee282b1 Much more portable. Tested on Solaris (bourne shell yay).
Edho Arief <edho@myconan.net>
parents: 143
diff changeset
44 _init "${1}" 'test -r "${HOME}/.ecos_tcsh" && source "${HOME}/.ecos_tcsh" #ECCORE_TCSH' ".cshrc"
463
4180a94a80af Add FreeBSD tcsh compatibility.
Edho Arief <edho@myconan.net>
parents: 456
diff changeset
45 _init "${1}" 'test -r "${HOME}/.ecos_tcsh" && source "${HOME}/.ecos_tcsh" #ECCORE_TCSH' ".tcshrc"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
46 ;;
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
47 esac
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
48 }
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
49
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
50 _bash() {
338
94d0e4826d28 Cosmetics.
Edho Arief <edho@myconan.net>
parents: 332
diff changeset
51 case "${1}" in
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
52 uninstall|install)
332
db66d53e10ea Canonical name for configs.
Edho Arief <edho@myconan.net>
parents: 325
diff changeset
53 _rc "${1}" "bashrc" ".ecos_bash"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
54 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bash_profile"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
55 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bashrc"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
56 ;;
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
57 esac
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
58 }
1
ddd721f10cb8 Unified installer/uninstaller.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
59
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
60 _zsh() {
338
94d0e4826d28 Cosmetics.
Edho Arief <edho@myconan.net>
parents: 332
diff changeset
61 case "${1}" in
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
62 uninstall|install)
332
db66d53e10ea Canonical name for configs.
Edho Arief <edho@myconan.net>
parents: 325
diff changeset
63 _rc "${1}" "zshrc" ".ecos_zsh"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
64 _init "${1}" '[ -r "${HOME}/.ecos_zsh" ] && . "${HOME}/.ecos_zsh" #ECCORE_ZSH' ".zshrc"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
65 ;;
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
66 esac
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
67 }
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
68
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
69 _rc() {
135
6a110770a756 A bit more sanity testing.
Edho Prima Arief <edho@myconan.net>
parents: 130
diff changeset
70 if test -z "${3}" || test -z "${2}" || test -z "${1}"; then
6a110770a756 A bit more sanity testing.
Edho Prima Arief <edho@myconan.net>
parents: 130
diff changeset
71 _echo "Invalid command."
6a110770a756 A bit more sanity testing.
Edho Prima Arief <edho@myconan.net>
parents: 130
diff changeset
72 return
6a110770a756 A bit more sanity testing.
Edho Prima Arief <edho@myconan.net>
parents: 130
diff changeset
73 fi
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
74 _srcfile="${rcdir}/${2}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
75 _dstfile="${HOME}/${3}"
325
795ad57794a6 [setup] Returning solaris compatibility.
Edho Arief <edho@myconan.net>
parents: 315
diff changeset
76 _dstdir="`_echo "${_dstfile}" | sed -e 's,^\(.*\)/[^/]*$,\1,'`"
315
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents: 246
diff changeset
77 mkdir -p "${_dstdir}"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
78 if test ! -h "${_dstfile}"; then
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
79 if test -f "${_dstfile}"; then
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
80 cp "${_dstfile}" "${_dstfile}.bak"
135
6a110770a756 A bit more sanity testing.
Edho Prima Arief <edho@myconan.net>
parents: 130
diff changeset
81 _echo "${_dstfile} backed up to ${_dstfile}.bak"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
82 elif test -d "${_dstfile}"; then
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
83 cp -r "${_dstfile}" "${_dstfile}.bak"
135
6a110770a756 A bit more sanity testing.
Edho Prima Arief <edho@myconan.net>
parents: 130
diff changeset
84 _echo "Directory ${_dstfile} backed up to ${_dstfile}.bak"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
85 fi
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
86 fi
135
6a110770a756 A bit more sanity testing.
Edho Prima Arief <edho@myconan.net>
parents: 130
diff changeset
87 rm -rf "${_dstfile}"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
88 case "${1}" in
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
89 install)
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
90 ln -fs "${_srcfile}" "${_dstfile}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
91 _echo "Installed ${_dstfile}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
92 ;;
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
93 uninstall)
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
94 _echo "Removed ${_dstfile}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
95 ;;
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
96 esac
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
97 }
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
98
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
99 _init() {
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
100 _script="${HOME}/${3}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
101 _scripttmp="${HOME}/.tmp.${3}"
325
795ad57794a6 [setup] Returning solaris compatibility.
Edho Arief <edho@myconan.net>
parents: 315
diff changeset
102 rm -f "${_scripttmp}"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
103 _data="${2}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
104 if [ -f "${_script}" ]; then
325
795ad57794a6 [setup] Returning solaris compatibility.
Edho Arief <edho@myconan.net>
parents: 315
diff changeset
105 sed -e "/`_echo "${_data}" | sed -e 's/.*#//'`/d" "${_script}" > "${_scripttmp}"
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
106 mv -f "${_scripttmp}" "${_script}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
107 fi
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
108 case "${1}" in
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
109 install)
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
110 _echo "${_data}" >> "${_script}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
111 _echo "Added autostart to ${_script}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
112 ;;
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
113 uninstall)
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
114 _echo "Removed autostart from ${_script}"
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
115 ;;
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
116 esac
1
ddd721f10cb8 Unified installer/uninstaller.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
117 }
ddd721f10cb8 Unified installer/uninstaller.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
118
474
8c637534d6cd More informative touch.
edogawaconan <me@myconan.net>
parents: 473
diff changeset
119 _touch() {
8c637534d6cd More informative touch.
edogawaconan <me@myconan.net>
parents: 473
diff changeset
120 touch "${@}"
8c637534d6cd More informative touch.
edogawaconan <me@myconan.net>
parents: 473
diff changeset
121 _echo "Ensured existence of ${@}"
8c637534d6cd More informative touch.
edogawaconan <me@myconan.net>
parents: 473
diff changeset
122 }
8c637534d6cd More informative touch.
edogawaconan <me@myconan.net>
parents: 473
diff changeset
123
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
124 _help() {
23
738a2da8b79c Added usage information for setup script.
Edho Prima Arief <me@myconan.net>
parents: 17
diff changeset
125 cat <<EOF
738a2da8b79c Added usage information for setup script.
Edho Prima Arief <me@myconan.net>
parents: 17
diff changeset
126 Usage: ${0} [install|uninstall]
738a2da8b79c Added usage information for setup script.
Edho Prima Arief <me@myconan.net>
parents: 17
diff changeset
127 EOF
738a2da8b79c Added usage information for setup script.
Edho Prima Arief <me@myconan.net>
parents: 17
diff changeset
128 }
738a2da8b79c Added usage information for setup script.
Edho Prima Arief <me@myconan.net>
parents: 17
diff changeset
129
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
130 case "${1}" in
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
131 install|uninstall)
325
795ad57794a6 [setup] Returning solaris compatibility.
Edho Arief <edho@myconan.net>
parents: 315
diff changeset
132 _tcsh "${1}"
795ad57794a6 [setup] Returning solaris compatibility.
Edho Arief <edho@myconan.net>
parents: 315
diff changeset
133 _bash "${1}"
795ad57794a6 [setup] Returning solaris compatibility.
Edho Arief <edho@myconan.net>
parents: 315
diff changeset
134 _zsh "${1}"
417
31bc186f8ed3 Sorted dotfile installation.
Edho Arief <edho@myconan.net>
parents: 416
diff changeset
135 _rc "${1}" "../bin" ".ecos_bin"
31bc186f8ed3 Sorted dotfile installation.
Edho Arief <edho@myconan.net>
parents: 416
diff changeset
136 _rc "${1}" "gemrc" ".gemrc"
356
38fad89edd55 Added gitconfig.
Edho Arief <edho@myconan.net>
parents: 338
diff changeset
137 _rc "${1}" "gitconfig" ".gitconfig"
456
e0f9a54b9dce Add global gitignore.
Edho Arief <edho@myconan.net>
parents: 425
diff changeset
138 _rc "${1}" "gitignore_global" ".gitignore_global"
332
db66d53e10ea Canonical name for configs.
Edho Arief <edho@myconan.net>
parents: 325
diff changeset
139 _rc "${1}" "hgrc" ".hgrc"
473
1ed4d4c449a6 Add global hgignore.
edogawaconan <me@myconan.net>
parents: 471
diff changeset
140 _rc "${1}" "hgignore_global" ".hgignore_global"
474
8c637534d6cd More informative touch.
edogawaconan <me@myconan.net>
parents: 473
diff changeset
141 _touch "${HOME}/.hgignore_global.local"
417
31bc186f8ed3 Sorted dotfile installation.
Edho Arief <edho@myconan.net>
parents: 416
diff changeset
142 _rc "${1}" "inputrc" ".inputrc"
31bc186f8ed3 Sorted dotfile installation.
Edho Arief <edho@myconan.net>
parents: 416
diff changeset
143 _rc "${1}" "tmux.conf" ".tmux.conf"
315
c6ad8279b076 Support for solarized vim color scheme.
Edho Arief <edho@myconan.net>
parents: 246
diff changeset
144 _rc "${1}" "vim-solarized" ".vim/colors/solarized.vim"
410
fd0a889066a6 Added syntax highlight for coffeescript.
Edho Arief <edho@myconan.net>
parents: 404
diff changeset
145 _rc "${1}" "vim-syntax-coffee" ".vim/syntax/coffee.vim"
476
064970c9df7c Sort syntax list.
edogawaconan <me@myconan.net>
parents: 475
diff changeset
146 _rc "${1}" "vim-syntax-json" ".vim/syntax/json.vim"
417
31bc186f8ed3 Sorted dotfile installation.
Edho Arief <edho@myconan.net>
parents: 416
diff changeset
147 _rc "${1}" "vim-syntax-scss" ".vim/syntax/scss.vim"
475
86873b811343 Add slim syntax to vim.
edogawaconan <me@myconan.net>
parents: 474
diff changeset
148 _rc "${1}" "vim-syntax-slim" ".vim/syntax/slim.vim"
425
7394b88bf1c6 Pathogen in vim.
Edho Arief <edho@myconan.net>
parents: 417
diff changeset
149 _rc "${1}" "vim-autoload-pathogen" ".vim/autoload/pathogen.vim"
417
31bc186f8ed3 Sorted dotfile installation.
Edho Arief <edho@myconan.net>
parents: 416
diff changeset
150 _rc "${1}" "vimrc" ".vimrc"
482
20521d872fab Add irbrc to keep history of commands.
edogawaconan <me@myconan.net>
parents: 476
diff changeset
151 _rc "${1}" "irbrc" ".irbrc"
26
175848778e77 Added initial upgrade support.
Edho Prima Arief <me@myconan.net>
parents: 23
diff changeset
152 ;;
23
738a2da8b79c Added usage information for setup script.
Edho Prima Arief <me@myconan.net>
parents: 17
diff changeset
153 *)
127
a7484f2c9616 Long-overdue massive reorganization.
Edho Prima Arief <edho@myconan.net>
parents: 126
diff changeset
154 _help
23
738a2da8b79c Added usage information for setup script.
Edho Prima Arief <me@myconan.net>
parents: 17
diff changeset
155 ;;
1
ddd721f10cb8 Unified installer/uninstaller.
Edho Prima Arief <me@myconan.net>
parents:
diff changeset
156 esac