.bashrc

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history and ignore same sucessive entries.
export HISTCONTROL=ignoreboth

# make the history longer
HISTFILESIZE=5000

# append to the history file, don't overwrite it
shopt -s histappend

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

case "$TERM" in
xterm*|rxvt*|screen)
    #PS1='\[\e[1;34m\][\u, \W]\$ \[\e[m\]'
    # http://live.gnome.org/Git/Tips, http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
    PS1='\[\e[1;34m\][\u, \W$(__git_ps1 "(\[\e[1;30m\]%s\[\e[m\]\[\e[1;34m\])")]\$ \[\e[m\]'
    ;;
*)
    ;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
fi

shopt -s cdspell
shopt -s cmdhist

# enable programmable completion features
if [ -f /etc/bash_dyncompletion ]; then
    . /etc/bash_dyncompletion
elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

. ~/.bash_aliases

export PATH=$PATH:/sbin:/usr/sbin:/home/rainct/bin:/home/rainct/.local/bin
export DEBFULLNAME="Siegfried-Angel Gevatter Pujals"
export DEBSIGN_KEYID="363DEAE3"
export DEB_MAINTAINER_MODE=1
export PBUILDFOLDER="/home/rainct/pbuilder"
export QUILT_PATCHES=debian/patches
export GREP_OPTIONS='--color=auto --exclude-dir=\.svn'
export EDITOR=nano

# This also needs an entry in .devscript:
# DEBUILD_PRSERVE_ENVVARS=DPKG_GENSYMBOLS_CHECK_LEVEL
export DPKG_GENSYMBOLS_CHECK_LEVEL=4

.bash_aliases

alias sh='rlwrap sh'
alias dash='rlwrap dash'
alias perl='rlwrap perl'

alias sl='ls'
alias geany='ex geany'
alias glade='ex glade-3'
alias dpkg-build='dpkg-buildpackage'

alias go='gnome-open'
alias apt-break-lock='sudo rm -f /var/lib/dpkg/lock; sudo rm -f /var/lock/aptitude;'
alias get-ppa-key='sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com '
alias caff='caff -m yes'
alias svn-buildpackage='svn-buildpackage --svn-ignore'

ex() {
	nohup "$@" >/dev/null 2>&1 <&1 & disown %%
}

getdir() {
	if [ ! $1 ]; then
		echo "Usage: getdir "
	else
		if [ ! -e $1 ]; then mkdir -p $1; fi
		cd $1
	fi
}

getsrc() {
	if [ ! $1 ]; then
		echo "Usage: getsrc "
	else
		getdir $1
		apt-get source $1
	fi
}

.inputrc (source)

"\e[A":history-search-backward
"\e[B":history-search-forward

.bazaar/bazaar.conf

...
[ALIASES]
log = log --git

.gitconfig

...
[url "ssh://sgevatter@git.gnome.org/git/"]
	insteadof = gnome:
[color]
	ui = auto

.ssh/config

...

Host *.debian.org
  User rainct-guest

Host git.gnome.org
    User sgevatter
    Compression yes
    CompressionLevel 3