# .bashrc # User specific aliases and functions # Source global definitions [ -f /etc/bashrc ] && . /etc/bashrc # setup for the current terminal window size # after running each command, in case the terminal # (width) was changed while the command was running # (which is a common occurance for vim/less/etc.) shopt -s checkwinsize # distinguish $HOST:$PWD prompt export PS1='\[\e[1;37m\]\h:\w\$\[\e[0m\] ' #change app defaults export TERM=xterm-256color #vim and gnome-terminal have support for 256 colours in fedora 8 at least alias grep='GREP_COLOR="1;33" LANG=C grep --color=auto' #use GREP_COLOR=7 to highlight whitespace alias ls="BLOCK_SIZE=\'1 ls --color=auto" alias minicom='minicom -c on' #enable colour alias cal='cal -3' alias units='units -t' alias diff='LC_ALL=C TZ=GMT0 diff -Naur' alias lynx='lynx -force_html -width=$COLUMNS' alias links='links -force-html' #need to enable colour in config menu manually alias xterm='xterm -fb "" -bg black -fg gray -sl 3000 -g 80x50+1+1' alias sudo='sudo env PATH=$PATH' #work around sudo built --with-secure-path (ubuntu) #quick dir listing, latest files/dirs at the bottom alias l="ls -lrt" #just list directories alias lld='ls -lUd */' #what most people want from od (hexdump) alias hd='od -Ax -tx1z -v' # canonicalize path (including resolving symlinks) alias realpath='readlink -f' export EDITOR=vim #for mc, cvs, svn, ... #Don't store duplicate adjacent items in the history export HISTCONTROL=ignoreboth #I hate noise set bell-style visible export LESS="-Q" #Let me have core dumps ulimit -c unlimited