Mercurial > dotfiles
comparison install.cmd @ 414:72365ec18f54
Merge changes
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 18 Jan 2018 16:27:32 -0800 |
parents | c6da0c9f40ae |
children | e57b012539d5 |
comparison
equal
deleted
inserted
replaced
413:4a2468f72e44 | 414:72365ec18f54 |
---|---|
1 @echo off | 1 @echo off |
2 setlocal | 2 setlocal |
3 | 3 |
4 set CWD=%~dp0 | 4 set CWD=%~dp0 |
5 python %CWD%install.py | |
5 | 6 |
6 :: VIM Files | |
7 if exist "%userprofile%\vimfiles" ( | |
8 set /P confirm=Will delete existing "%userprofile%\vimfiles". OK with that? Press CTRL-C to abort. | |
9 rmdir /Q /S "%userprofile%\vimfiles" | |
10 ) | |
11 | |
12 if exist "%userprofile%\_vimrc" ( | |
13 set /P confirm=Will delete existing "%userprofile%\_vimrc". OK with that? Press CTRL-C to abort. | |
14 del /Q "%userprofile%\_vimrc" | |
15 ) | |
16 echo set runtimepath+=%CWD:\=/%vim > "%userprofile%\_vimrc" | |
17 echo source %CWD:\=/%vim/vimrc >> "%userprofile%\_vimrc" | |
18 | |
19 :: Mercurial Files | |
20 if exist "%userprofile%\mercurial.ini" ( | |
21 set /P confirm=Will delete existing "%userprofile%\mercurial.ini". OK with that? Press CTRL-C to abort. | |
22 del /Q "%userprofile%\mercurial.ini" | |
23 ) | |
24 echo %%include %CWD%hgrc\hgrc > "%userprofile%\mercurial.ini" | |
25 echo [ui] >> "%userprofile%\mercurial.ini" | |
26 echo ignore = %CWD:\=/%hgrc/hgignore >> "%userprofile%\mercurial.ini" | |
27 echo [extensions] >> "%userprofile%\mercurial.ini" | |
28 echo hggit = %CWD:\=/%lib/hg/hg-git/hggit/ >> "%userprofile%\mercurial.ini" | |
29 echo onsub = %CWD:\=/%lib/hg/onsub/onsub.py >> "%userprofile%\mercurial.ini" | |
30 echo allpaths = %CWD:\=/%lib/hg/allpaths/mercurial_all_paths.py >> "%userprofile%\mercurial.ini" | |
31 echo prompt = %CWD:\=/%lib/hg/hg-prompt/prompt.py >> "%userprofile%\mercurial.ini" | |
32 echo changelog = %CWD:\=/%lib/hg/changelog/changelog.py >> "%userprofile%\mercurial.ini" | |
33 echo evolve = %CWD:\=/%lib/hg/mutable-history/hgext/evolve.py >> "%userprofile%\mercurial.ini" | |
34 echo terse-status = %CWD:\=/%lib/hg/terse-status/terse-status.py >> "%userprofile%\mercurial.ini" | |
35 echo path-pattern = %CWD:\=/%lib/hg/path-pattern/mercurial_path_pattern.py >> "%userprofile%\mercurial.ini" | |
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 ) | |
42 echo [include] > "%userprofile%\.gitconfig" | |
43 echo path = %CWD:\=/%git/gitconfig >> "%userprofile%\.gitconfig" | |
44 | |
45 :: Web Browser | |
46 if exist "%userprofile%\_pentadactylrc" ( | |
47 set /P confirm=Will delete existing "%userprofile%\_pentadactylrc". OK with that? Press CTRL-C to abort. | |
48 del /Q "%userprofile%\_pentadactylrc" | |
49 ) | |
50 echo set runtimepath=~/.pentadactyl,%CWD:\=/%pentadactyl > "%userprofile%\_pentadactylrc" | |
51 echo source %CWD:\=/%pentadactyl/pentadactylrc >> "%userprofile%\_pentadactylrc" | |
52 | |
53 if exist "%userprofile%\_vimperatorrc" ( | |
54 set /P confirm=Will delete existing "%userprofile%\_vimperatorrc". OK with that? Press CTRL-C to abort. | |
55 del /Q "%userprofile%\_vimperatorrc" | |
56 ) | |
57 echo set runtimepath=~/.vimperator,%CWD:\=/%vimperator > "%userprofile%\_vimperatorrc" | |
58 echo source %CWD:\=/%vimperator/vimperatorrc >> "%userprofile%\_vimperatorrc" | |
59 | |
60 :: Console 2 | |
61 if exist "%appdata%\Console\console.xml" ( | |
62 set /P confirm=Will delete existing Console2 settings. OK with that? Press CTRL-C to abort. | |
63 del /Q "%appdata%\Console\console.xml" | |
64 ) | |
65 if not exist "%appdata%\Console" mkdir "%appdata%\Console" | |
66 copy "%CWD%console.xml" "%appdata%\Console\console.xml" | |
67 | |
68 setx GIT_SSH %USERPROFILE%\Dropbox\Utilities\plink.exe | |
69 |