changeset 70:d753f7893361

Added `bashrc`.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 05 Feb 2012 14:11:56 -0800
parents c6dfa2799d1d
children 67cacdcdd73a
files bashrc/bashrc install.sh uninstall.sh
diffstat 3 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bashrc/bashrc	Sun Feb 05 14:11:56 2012 -0800
@@ -0,0 +1,15 @@
+# -----------
+# Environment
+# -----------
+
+# Custom PATH.
+export PATH="$HOME/bin:$PATH"
+
+# Large history without duplicates.
+export HISTSIZE=10000
+export HISTFILESIZE=10000
+export HISTCONTROL=erasedups
+
+# Use VIM by default.
+export EDITOR="vim"
+
--- a/install.sh	Fri Dec 09 23:24:17 2011 -0800
+++ b/install.sh	Sun Feb 05 14:11:56 2012 -0800
@@ -2,9 +2,17 @@
 
 CWD="$( cd "$( dirname "$0" )" && pwd )"
 
+# BASH
+# ----
+ln -s "$CWD/bashrc/bashrc" "$HOME/.bashrc"
+
+# VIM
+# ---
 ln -s "$CWD/vim"        "$HOME/.vim"
 ln -s "$CWD/vim/vimrc"  "$HOME/.vimrc"
 
+# MERCURIAL
+# ---------
 echo %include $CWD/hgrc/hgrc > "$HOME/.hgrc"
 echo [extensions] >> "$HOME/.hgrc"
 echo hggit = $CWD/lib/hg/hg-git/hggit/ >> "$HOME/.hgrc"
@@ -12,3 +20,4 @@
 
 ln -s "$CWD/hgrc/hgignore" "$HOME/.hgignore"
 
+
--- a/uninstall.sh	Fri Dec 09 23:24:17 2011 -0800
+++ b/uninstall.sh	Sun Feb 05 14:11:56 2012 -0800
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+rm $HOME/.bashrc
 rm $HOME/.vim
 rm $HOME/.vimrc
 rm $HOME/.hgrc