Mercurial > dotfiles
annotate install.cmd @ 298:ffa5a9102d22
Add 'pintaboard' plugin to Pentadactyl.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 21 Apr 2015 16:31:53 -0700 |
parents | 9056a39ef016 |
children | 65165c2de85e |
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" |
290
65a5097587d4
Adding `terse-status` and `hgremotenames` to Mercurial.
Ludovic Chabant <ludovic@chabant.com>
parents:
241
diff
changeset
|
32 echo changelog = %CWD:\=/%lib/hg/changelog/changelog.py >> "%userprofile%\mercurial.ini" |
65a5097587d4
Adding `terse-status` and `hgremotenames` to Mercurial.
Ludovic Chabant <ludovic@chabant.com>
parents:
241
diff
changeset
|
33 echo evolve = %CWD:\=/%lib/hg/mutable-history/hgext/evolve.py >> "%userprofile%\mercurial.ini" |
65a5097587d4
Adding `terse-status` and `hgremotenames` to Mercurial.
Ludovic Chabant <ludovic@chabant.com>
parents:
241
diff
changeset
|
34 echo terse-status = %CWD:\=/%lib/hg/terse-status/terse-status.py >> "%userprofile%\mercurial.ini" |
65a5097587d4
Adding `terse-status` and `hgremotenames` to Mercurial.
Ludovic Chabant <ludovic@chabant.com>
parents:
241
diff
changeset
|
35 echo remotenames = %CWD:\=/%lib/hg/hgremotenames/remotenames.py >> "%userprofile%\mercurial.ini" |
124 | 36 |
37 :: Git Files | |
38 if exist "%userprofile%\.gitconfig" ( | |
39 set /P confirm=Will delete existing "%userprofile%\.gitconfig". OK with that? Press CTRL-C to abort. | |
40 del /Q "%userprofile%\.gitconfig" | |
41 ) | |
292
6938fb0146f5
Add stuff to `gitconfig`, use better installation for it.
Ludovic Chabant <ludovic@chabant.com>
parents:
290
diff
changeset
|
42 echo [include] > "%userprofile%\.gitconfig" |
6938fb0146f5
Add stuff to `gitconfig`, use better installation for it.
Ludovic Chabant <ludovic@chabant.com>
parents:
290
diff
changeset
|
43 echo path = %CWD:\=/%git/gitconfig >> "%userprofile%\.gitconfig" |
124 | 44 |
139
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
45 :: Web Browser |
220
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
139
diff
changeset
|
46 if exist "%userprofile%\_pentadactylrc" ( |
1ba0daaa8e4e
Start using Pentadactyl instead of Vimperator.
Ludovic Chabant <ludovic@chabant.com>
parents:
139
diff
changeset
|
47 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
|
48 del /Q "%userprofile%\_pentadactylrc" |
139
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
49 ) |
297
9056a39ef016
Move `pentadactylrc` to a subfolder, update install scripts.
Ludovic Chabant <ludovic@chabant.com>
parents:
292
diff
changeset
|
50 echo set runtimepath=~/.pentadactyl,%CWD:\=/%pentadactyl > "%userprofile%\_pentadactylrc" |
9056a39ef016
Move `pentadactylrc` to a subfolder, update install scripts.
Ludovic Chabant <ludovic@chabant.com>
parents:
292
diff
changeset
|
51 echo source %CWD:\=/%pentadactyl/pentadactylrc >> "%userprofile%\_pentadactylrc" |
139
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
52 |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
53 :: Console 2 |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
54 if exist "%appdata%\Console\console.xml" ( |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
55 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
|
56 del /Q "%appdata%\Console\console.xml" |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
57 ) |
2e1f9a40a36a
Install Vimperator and Console2 settings on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents:
124
diff
changeset
|
58 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
|
59 copy "%CWD%console.xml" "%appdata%\Console\console.xml" |