Mercurial > dotfiles
comparison install.cmd @ 82:6b2c3f14a5c1
Install changes:
- Don't use any linking on Windows (requires admin rights).
- Reference the global hgignore correctly from hgrc.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 22 Mar 2012 11:11:16 -0700 |
parents | 8021bd1438f6 |
children | b96ff0dd0137 |
comparison
equal
deleted
inserted
replaced
81:2e0fbe44e9fe | 82:6b2c3f14a5c1 |
---|---|
6 :: VIM Files | 6 :: VIM Files |
7 if exist "%userprofile%\vimfiles" ( | 7 if exist "%userprofile%\vimfiles" ( |
8 set /P confirm=Will delete existing "%userprofile%\vimfiles". OK with that? Press CTRL-C to abort. | 8 set /P confirm=Will delete existing "%userprofile%\vimfiles". OK with that? Press CTRL-C to abort. |
9 rmdir /Q /S "%userprofile%\vimfiles" | 9 rmdir /Q /S "%userprofile%\vimfiles" |
10 ) | 10 ) |
11 mklink /D "%userprofile%\vimfiles" "%CWD%vim" | |
12 | 11 |
13 if exist "%userprofile%\_vimrc" ( | 12 if exist "%userprofile%\_vimrc" ( |
14 set /P confirm=Will delete existing "%userprofile%\_vimrc". OK with that? Press CTRL-C to abort. | 13 set /P confirm=Will delete existing "%userprofile%\_vimrc". OK with that? Press CTRL-C to abort. |
15 del /Q "%userprofile%\_vimrc" | 14 del /Q "%userprofile%\_vimrc" |
16 ) | 15 ) |
17 mklink "%userprofile%\_vimrc" "%CWD%vim\vimrc" | 16 echo set runtimepath=%CWD:\=/%vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,%CWD:\=/%vim/after > "%userprofile%\_vimrc" |
17 echo source %CWD:\=/%vim/vimrc >> "%userprofile%\_vimrc" | |
18 | 18 |
19 :: Mercurial Files | 19 :: Mercurial Files |
20 if exist "%userprofile%\mercurial.ini" ( | 20 if exist "%userprofile%\mercurial.ini" ( |
21 set /P confirm=Will delete existing "%userprofile%\mercurial.ini". OK with that? Press CTRL-C to abort. | 21 set /P confirm=Will delete existing "%userprofile%\mercurial.ini". OK with that? Press CTRL-C to abort. |
22 del /Q "%userprofile%\mercurial.ini" | 22 del /Q "%userprofile%\mercurial.ini" |
23 ) | 23 ) |
24 echo %%include %CWD%hgrc\hgrc > "%userprofile%\mercurial.ini" | 24 echo %%include %CWD%hgrc\hgrc > "%userprofile%\mercurial.ini" |
25 echo [ui] >> "%userprofile%\mercurial.ini" | |
26 echo ignore = %CWD:\=/%/hgrc/hgignore >> "%userprofile%\mercurial.ini" | |
25 echo [extensions] >> "%userprofile%\mercurial.ini" | 27 echo [extensions] >> "%userprofile%\mercurial.ini" |
26 echo hggit = %CWD:\=/%lib/hg/hg-git/hggit/ >> "%userprofile%\mercurial.ini" | 28 echo hggit = %CWD:\=/%lib/hg/hg-git/hggit/ >> "%userprofile%\mercurial.ini" |
27 echo onsub = %CWD:\=/%lib/hg/onsub/onsub.py >> "%userprofile%\mercurial.ini" | 29 echo onsub = %CWD:\=/%lib/hg/onsub/onsub.py >> "%userprofile%\mercurial.ini" |
28 | |
29 if exist "%userprofile%\mercurial_ignore" ( | |
30 set /P confirm=Will delete existing "%userprofile%\mercurial_ignore". OK with that? Press CTRL-C to abort. | |
31 del /Q "%userprofile%\mercurial_ignore" | |
32 ) | |
33 mklink "%userprofile%\mercurial_ignore" "%CWD%hgrc\hgignore" | |
34 |