bin/setup-windows

Mon, 27 Mar 2023 15:27:01 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 27 Mar 2023 15:27:01 -0500
changeset 1093
3d970272f1a3
parent 1047
7656dabe8a60
child 1106
902c7d44ab23
permissions
-rwxr-xr-x

fix surprise reindent

685
691e15efff36 add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents: 527
diff changeset
1 #!/bin/sh
691e15efff36 add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents: 527
diff changeset
2 set -eu
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
3
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 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
5 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
6 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
7
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 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
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 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
11
685
691e15efff36 add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents: 527
diff changeset
12 mkdir -p ${USERPROFILE}/vimfiles
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
13
685
691e15efff36 add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents: 527
diff changeset
14 cp -vu .vimrc ${USERPROFILE}/_vimrc
978
39659c5ed5b0 include gvimrc
Meredith Howard <mhoward@roomag.org>
parents: 700
diff changeset
15 cp -vu .gvimrc ${USERPROFILE}/_gvimrc
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
16
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 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
18
1038
a1321a7e0b77 ensure nvim directory eixsts
Meredith Howard <mhoward@roomag.org>
parents: 1037
diff changeset
19 mkdir -p ${USERPROFILE}/AppData/Local/nvim
1037
47dae3972ee0 include nvim files
Meredith Howard <mhoward@roomag.org>
parents: 980
diff changeset
20 cp -vuRL -t ${USERPROFILE}/AppData/Local/nvim .config/nvim/*
47dae3972ee0 include nvim files
Meredith Howard <mhoward@roomag.org>
parents: 980
diff changeset
21
1047
7656dabe8a60 actully, goneovim is wrong about its windows path
Meredith Howard <mhoward@roomag.org>
parents: 1046
diff changeset
22 mkdir -p ${USERPROFILE}/.oneovim
7656dabe8a60 actully, goneovim is wrong about its windows path
Meredith Howard <mhoward@roomag.org>
parents: 1046
diff changeset
23 cp -vu .config/goneovim/settings.toml ${USERPROFILE}/.goneovim/
1046
952f0b41abe0 copy goneovim settings
Meredith Howard <mhoward@roomag.org>
parents: 1038
diff changeset
24
685
691e15efff36 add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents: 527
diff changeset
25 cp -vuRL -t ${USERPROFILE}/ \
691e15efff36 add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents: 527
diff changeset
26 .lib \
691e15efff36 add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents: 527
diff changeset
27 .ctags \
691e15efff36 add a few more files to copy, simplify
Meredith Howard <mhoward@roomag.org>
parents: 527
diff changeset
28 .perltidyrc \
700
a325161d7ffb incl replyrc.pl
Meredith Howard <mhoward@roomag.org>
parents: 688
diff changeset
29 .replyrc \
a325161d7ffb incl replyrc.pl
Meredith Howard <mhoward@roomag.org>
parents: 688
diff changeset
30 .replyrc.pl

mercurial