The .bashrc configuration file is placed in the the user's home directory
to configure the bash shell environment when the user logs in. This file
must be called from another file such as '/etc/profile', '.profile', or
'bash_profile'. The syntax to call this file is '. $HOME/.bashrc'.
#.bashrc
alias la="ls -al"
alias rd="rmdir"
alias md="mkdir"
alias cls="clear"
alias scott="rsh koala.scott.net"
alias hobb="telnet hobbiton.org"
alias gtem="telnet mail.gte.net 110"
export PS1="[\u@\h] \w$ "
# \u - user
# \h - hostname
# \w - working directory
# This is a sample .bashrc:
# $HOME/.bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# this is needed to notify the user that they are in non-login shell
if [ "$GET_PS1" = "" ] ; then
COLOUR=45; ESC="\033"; STYLE=';1m'; # STYLE='m'
USER=`whoami`
export PS1="\[$ESC[$COLOUR;37$STYLE\]$USER:\[$ESC[37;40$STYLE\]\w\\$ "
fi
# personal aliases
alias backup='tar -Mcvf /dev/fd0'
alias dial='eznet up myisp'
alias f='cd ~/fortran'
alias hangup='eznet down'
alias lyx='lyx -width 580 -height 450'
alias restore='tar -M -xpvf /dev/fd0'
# personal functions
xj() # Launch xjed and a file in background
{
xjed $1 &
}