# ~/.bashrc: executed by bash(1) for non-login shells. # If not running interactively, don't do anything [ -z "$PS1" ] && return export TERM=xterm #I found this to help with OSX terminals. I think. I don't need or use it anymore. #stty erase ^H #debian developer and git commit stuff. export DEBFULLNAME='Your Name' export DEBEMAIL=you@yourdomain.com export GIT_AUTHOR_NAME='Your Name' export GIT_AUTHOR_EMAIL=you@yourdomain.com export GIT_COMMITTER_NAME='Your Name' export GIT_COMMITTER_EMAIL=you@yourdomain.com # don't put duplicate lines in the history. See bash(1) for more options export HISTCONTROL=ignoredups # ... and ignore same sucessive entries. export HISTCONTROL=ignoreboth # make the history file bigger export HISTFILESIZE=9000 # 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 "$(lesspipe)" # my prompt. simple & useful, with some colour. looks like: "user@hostname ~ $ " export PS1='\[\033[01;32m\]\u\[\033[01;00m\]@\[\033[01;31m\]\h \[\033[37m\]\W $ \[\033[00m\]' # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' ;; *) ;; esac # yeah, I want to use vim wherever possible. export EDITOR=vim # Alias definitions. if [ "$TERM" != "dumb" ]; then eval "`dircolors -b`" alias ls='ls --color=auto' fi # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi # this is the greeting & motd you see at login date if [ -x /usr/games/fortune ]; then /usr/games/fortune -a fi function _exit() # function to run upon exit of shell { echo -e "${RED}BYE${NC}" } trap _exit EXIT ## other aliases. alias more='less' alias sc='screen -RD -U -a' # you'll need to have colordiff installed to use this #alias diff='colordiff'