view install.sh @ 215:02ea6f694bb8

Git config changes.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 11 Sep 2014 20:15:45 -0700
parents 70d3ec19bef2
children 1ba0daaa8e4e
line wrap: on
line source

#!/bin/sh

CWD="$( cd "$( dirname "$0" )" && pwd )"

# BASH
# ----
ln -s "$CWD/bashrc/bashrc" "$HOME/.bashrc"
ln -s "$CWD/bashrc/bash_profile" "$HOME/.bash_profile"

# VIM
# ---
echo set runtimepath+=$CWD/vim > "$HOME/.vimrc"
echo source $CWD/vim/vimrc >> "$HOME/.vimrc"

# MERCURIAL
# ---------
echo %include $CWD/hgrc/hgrc > "$HOME/.hgrc"
echo [ui] >> "$HOME/.hgrc"
echo ignore = $CWD/hgrc/hgignore >> "$HOME/.hgrc"
echo [extensions] >> "$HOME/.hgrc"
echo hggit = $CWD/lib/hg/hg-git/hggit/ >> "$HOME/.hgrc"
echo onsub = $CWD/lib/hg/onsub/onsub.py >> "$HOME/.hgrc"

# GIT
# ---
cp "$CWD/git/gitconfig" "$HOME/.gitconfig"

# WEB BROWSER
# -----------
ln -s "$CWD/vimperatorrc" "$HOME/.vimperatorrc"