view install.cmd @ 75:d930a9c6d590

Added badwolf colorscheme.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 09 Mar 2012 17:13:54 -0800
parents 8021bd1438f6
children 6b2c3f14a5c1
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"
)
mklink /D "%userprofile%\vimfiles"	"%CWD%vim"

if exist "%userprofile%\_vimrc" (
    set /P confirm=Will delete existing "%userprofile%\_vimrc". OK with that? Press CTRL-C to abort.
    del /Q "%userprofile%\_vimrc"
)
mklink    "%userprofile%\_vimrc"	"%CWD%vim\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 [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"

if exist "%userprofile%\mercurial_ignore" (
    set /P confirm=Will delete existing "%userprofile%\mercurial_ignore". OK with that? Press CTRL-C to abort.
    del /Q "%userprofile%\mercurial_ignore"
)
mklink    "%userprofile%\mercurial_ignore" "%CWD%hgrc\hgignore"