Mercurial > dotfiles
view install.cmd @ 84:e7d12826b236
Fixed hgsubstate.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 22 Mar 2012 11:53:00 -0700 |
parents | 6b2c3f14a5c1 |
children | b96ff0dd0137 |
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,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,%CWD:\=/%vim/after > "%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"