1 # ~/.bashrc: executed by bash(1) for non-login shells.
3 # If not running interactively, don't do anything
4 [ -z "$PS1" ] && return
6 # don't put duplicate lines in the history. See bash(1) for more options
7 # don't overwrite GNU Midnight Commander's setting of `ignorespace'.
8 export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
9 # ... or force ignoredups and ignorespace
10 export HISTCONTROL=ignoreboth
12 # append to the history file, don't overwrite it
15 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
17 # check the window size after each command and, if necessary,
18 # update the values of LINES and COLUMNS.
21 # make less more friendly for non-text input files, see lesspipe(1)
22 [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
27 # enable color support of ls and also add handy aliases
28 if [ -x /usr/bin/dircolors ]; then
30 alias ls='ls --color=auto'
31 alias dir='dir --color=auto'
32 alias vdir='vdir --color=auto'
34 alias grep='grep --color=auto'
35 alias fgrep='fgrep --color=auto'
36 alias egrep='egrep --color=auto'
39 alias clang='~/Programs/clang2.6/bin/clang -Wall -std=c99 -lncurses'
40 alias emacs='emacs -nw'
41 alias gcc='gcc -Wall -std=c99 -lncurses'
42 alias serve='python -m SimpleHTTPServer 8080'
46 # Enable programmable completion features (you don't need to enable
47 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
48 # sources /etc/bash.bashrc).
49 if [ -f /etc/bash_completion ]; then
50 . /etc/bash_completion
53 # Add the ~/bin directory to the path. This allows you to install simple
54 # binaries by simply moving them into ~/bin.
55 if [ -d $HOME/bin ]; then
56 PATH="$HOME/bin:$PATH"
60 # Run a machine-specific bashrc (if it exists).
61 if [ -f $HOME/.bashrc_local ]; then
62 source $HOME/.bashrc_local
65 # Automatically open screen.
66 # The if statement prevents it from recursing (since screen opens bash).
67 if [ $TERM != screen ]; then