Mercurial > dotfiles
view install.cmd @ 238:2a497a1a1a3a
Updated install script.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 11 Dec 2014 23:37:28 -0800 |
parents | facdcef5aa67 |
children | e869b2f99c75 |
line wrap: on
line source
@echo off setlocal set CWD=%~dp0 :: VIM Files if exist "%userprofile%\vimfiles" ( set /P confirm=Will delete existing "%userprofile%\vimfiles". OK with that? Press CTRL-C to abort. rmdir /Q /S "%userprofile%\vimfiles" ) if exist "%userprofile%\_vimrc" ( set /P confirm=Will delete existing "%userprofile%\_vimrc". OK with that? Press CTRL-C to abort. del /Q "%userprofile%\_vimrc" ) echo set runtimepath+=%CWD:\=/%vim > "%userprofile%\_vimrc" echo source %CWD:\=/%vim/vimrc >> "%userprofile%\_vimrc" :: Mercurial Files if exist "%userprofile%\mercurial.ini" ( set /P confirm=Will delete existing "%userprofile%\mercurial.ini". OK with that? Press CTRL-C to abort. del /Q "%userprofile%\mercurial.ini" ) echo %%include %CWD%hgrc\hgrc > "%userprofile%\mercurial.ini" echo [ui] >> "%userprofile%\mercurial.ini" echo ignore = %CWD:\=/%/hgrc/hgignore >> "%userprofile%\mercurial.ini" echo [extensions] >> "%userprofile%\mercurial.ini" echo hggit = %CWD:\=/%lib/hg/hg-git/hggit/ >> "%userprofile%\mercurial.ini" echo onsub = %CWD:\=/%lib/hg/onsub/onsub.py >> "%userprofile%\mercurial.ini" echo allpaths = %CWD:\=/%lib/hg/allpaths/allpaths.py >> "%userprofile%\mercurial.ini" :: Git Files if exist "%userprofile%\.gitconfig" ( set /P confirm=Will delete existing "%userprofile%\.gitconfig". OK with that? Press CTRL-C to abort. del /Q "%userprofile%\.gitconfig" ) copy "%CWD%git\gitconfig" "%userprofile%\.gitconfig" :: Web Browser if exist "%userprofile%\_pentadactylrc" ( set /P confirm=Will delete existing "%userprofile%\_pentadactylrc". OK with that? Press CTRL-C to abort. del /Q "%userprofile%\_pentadactylrc" ) echo source %CWD:\=/%pentadactylrc > "%userprofile%\_pentadactylrc" :: Console 2 if exist "%appdata%\Console\console.xml" ( set /P confirm=Will delete existing Console2 settings. OK with that? Press CTRL-C to abort. del /Q "%appdata%\Console\console.xml" ) if not exist "%appdata%\Console" mkdir "%appdata%\Console" copy "%CWD%console.xml" "%appdata%\Console\console.xml"