Mercurial > dotfiles
annotate install.cmd @ 271:a1eb5cb340e6
Merge changes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 24 Jan 2015 18:35:06 -0800 |
parents | e869b2f99c75 |
children | 65a5097587d4 |
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" |
241
e869b2f99c75
Start using `hg-prompt`.
Ludovic Chabant <ludovic@chabant.com>
parents:
225
diff
changeset
|
31 echo prompt = %CWD:\=/%lib/hg/hg-prompt/prompt.py >> "%userprofile%\mercurial.ini" |
124 | 32 |
33 :: Git Files | |
34 if exist "%userprofile%\.gitconfig" ( | |
35 set /P confirm=Will delete existing "%userprofile%\.gitconfig". OK with that? Press CTRL-C to abort. | |
36 del /Q "%userprofile%\.gitconfig" | |
37 ) | |
38 copy "%CWD%git\gitconfig" "%userprofile%\.gitconfig" | |
39 | |
139
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
40 :: Web Browser |
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
139
diff
changeset
|
41 if exist "%userprofile%\_pentadactylrc" ( |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
139
diff
changeset
|
42 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
|
43 del /Q "%userprofile%\_pentadactylrc" |
139
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
44 ) |
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
139
diff
changeset
|
45 echo source %CWD:\=/%pentadactylrc > "%userprofile%\_pentadactylrc" |
139
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
46 |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
47 :: Console 2 |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
48 if exist "%appdata%\Console\console.xml" ( |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
49 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
|
50 del /Q "%appdata%\Console\console.xml" |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
51 ) |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
52 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
|
53 copy "%CWD%console.xml" "%appdata%\Console\console.xml" |