Thu, 09 Oct 2014 12:13:25 -0400
jellybeans on gui
130
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
1 | #!/bin/bash |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
2 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
3 | set -euo pipefail |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
4 | IFS=$'\n\t' |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
5 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
6 | if [ ! -L ~/userprofile ]; then |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
7 | echo "Please link ~/userprofile" |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
8 | fi |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
9 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
10 | USERPROFILE="$(readlink ~/userprofile)" |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
11 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
12 | cd `hg root` |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
13 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
14 | cp -vu .vimrc ${USERPROFILE}/_vimrc |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
15 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
16 | if [ ! -d ${USERPROFILE}/vimfiles ]; then |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
17 | mkdir ${USERPROFILE}/vimfiles |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
18 | fi |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
19 | |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
20 | cp -vuRL -t ${USERPROFILE}/vimfiles .vim/* |
906ce6af31f6
Get rid of batch file for smarter shell script that can push out to win32 vim
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
21 |