Mercurial > dotfiles
annotate install.cmd @ 225:facdcef5aa67
Add `allpaths` to the installer.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 18 Sep 2014 20:53:53 -0700 |
parents | 1ba0daaa8e4e |
children | e869b2f99c75 |
rev | line source |
---|---|
32
d07ca3d7f36c
Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents:
28
diff
changeset
|
1 @echo off |
d07ca3d7f36c
Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents:
28
diff
changeset
|
2 setlocal |
d07ca3d7f36c
Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents:
28
diff
changeset
|
3 |
d07ca3d7f36c
Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents:
28
diff
changeset
|
4 set CWD=%~dp0 |
23
4b35035cb781
Added script to create Windows symlinks.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
5 |
54
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
6 :: VIM Files |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
7 if exist "%userprofile%\vimfiles" ( |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
8 set /P confirm=Will delete existing "%userprofile%\vimfiles". OK with that? Press CTRL-C to abort. |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
9 rmdir /Q /S "%userprofile%\vimfiles" |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
10 ) |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
11 |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
12 if exist "%userprofile%\_vimrc" ( |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
13 set /P confirm=Will delete existing "%userprofile%\_vimrc". OK with that? Press CTRL-C to abort. |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
14 del /Q "%userprofile%\_vimrc" |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
15 ) |
95
b96ff0dd0137
Fixed the generated vimrc's runtimepath.
Ludovic Chabant <ludovic@chabant.com>
parents:
82
diff
changeset
|
16 echo set runtimepath+=%CWD:\=/%vim > "%userprofile%\_vimrc" |
82 | 17 echo source %CWD:\=/%vim/vimrc >> "%userprofile%\_vimrc" |
23
4b35035cb781
Added script to create Windows symlinks.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
18 |
54
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
19 :: Mercurial Files |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
20 if exist "%userprofile%\mercurial.ini" ( |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
21 set /P confirm=Will delete existing "%userprofile%\mercurial.ini". OK with that? Press CTRL-C to abort. |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
22 del /Q "%userprofile%\mercurial.ini" |
8021bd1438f6
Handle existing files before setting up shortcuts.
Ludovic Chabant <ludovic@chabant.com>
parents:
40
diff
changeset
|
23 ) |
32
d07ca3d7f36c
Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents:
28
diff
changeset
|
24 echo %%include %CWD%hgrc\hgrc > "%userprofile%\mercurial.ini" |
82 | 25 echo [ui] >> "%userprofile%\mercurial.ini" |
26 echo ignore = %CWD:\=/%/hgrc/hgignore >> "%userprofile%\mercurial.ini" | |
32
d07ca3d7f36c
Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents:
28
diff
changeset
|
27 echo [extensions] >> "%userprofile%\mercurial.ini" |
d07ca3d7f36c
Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents:
28
diff
changeset
|
28 echo hggit = %CWD:\=/%lib/hg/hg-git/hggit/ >> "%userprofile%\mercurial.ini" |
34
c3a77eaa467a
Added 'onsub' extension for Mercurial.
Ludovic Chabant <ludovic@chabant.com>
parents:
32
diff
changeset
|
29 echo onsub = %CWD:\=/%lib/hg/onsub/onsub.py >> "%userprofile%\mercurial.ini" |
225
facdcef5aa67
Add `allpaths` to the installer.
Ludovic Chabant <ludovic@chabant.com>
parents:
220
diff
changeset
|
30 echo allpaths = %CWD:\=/%lib/hg/allpaths/allpaths.py >> "%userprofile%\mercurial.ini" |
124 | 31 |
32 :: Git Files | |
33 if exist "%userprofile%\.gitconfig" ( | |
34 set /P confirm=Will delete existing "%userprofile%\.gitconfig". OK with that? Press CTRL-C to abort. | |
35 del /Q "%userprofile%\.gitconfig" | |
36 ) | |
37 copy "%CWD%git\gitconfig" "%userprofile%\.gitconfig" | |
38 | |
139
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
39 :: Web Browser |
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
139
diff
changeset
|
40 if exist "%userprofile%\_pentadactylrc" ( |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
139
diff
changeset
|
41 set /P confirm=Will delete existing "%userprofile%\_pentadactylrc". OK with that? Press CTRL-C to abort. |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
139
diff
changeset
|
42 del /Q "%userprofile%\_pentadactylrc" |
139
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
43 ) |
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
139
diff
changeset
|
44 echo source %CWD:\=/%pentadactylrc > "%userprofile%\_pentadactylrc" |
139
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
45 |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
46 :: Console 2 |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
47 if exist "%appdata%\Console\console.xml" ( |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
48 set /P confirm=Will delete existing Console2 settings. OK with that? Press CTRL-C to abort. |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
49 del /Q "%appdata%\Console\console.xml" |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
50 ) |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
51 if not exist "%appdata%\Console" mkdir "%appdata%\Console" |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
52 copy "%CWD%console.xml" "%appdata%\Console\console.xml" |