# Last Modified: Fri 18 Jun 2004 08:35:45 PM MDT # User specific aliases and functions # Colorize output with file-type note (/ after dirs, @ after symlinks, * after exes): alias ls='ls -GF' alias rm='rm -i' # Interactively alias mv='mv -i' # Interactively alias cp='cp -i' # Interactively alias lsd='ls -dlf */' # List directories alias ll='ls -l' # Detailed list alias cd..='cd ..' # Parent directory alias realplay='/usr/home/josh/RealPlayer9/realplay' # //***************************************// # Black 0;30 Dark Gray 1;30 # Blue 0;34 Light Blue 1;34 # Green 0;32 Light Green 1;32 # Cyan 0;36 Light Cyan 1;36 # Red 0;31 Light Red 1;31 # Purple 0;35 Light Purple 1;35 # Brown 0;33 Yellow 1;33 # Light Gray 0;37 White 1;37 # ------------------------- # # Borrowed from http://forums.gentoo.org/viewtopic.php?t=5850&highlight=bash+prompt+colors # Color Variables for Prompt GRAD1='\333\262\261\260' GRAD2='\260\261\262\333' YLOBRN='\[\033[01;33;43m\]' WHTBRN='\[\033[01;37;43m\]' REDBRN='\[\033[00;31;43m\]' REDBLK='\[\033[00;31;40m\]' PPLBLK='\[\033[01;35;40m\]' WHTBLK='\[\033[01;37;40m\]' NONE='\[\033[00m\]' HBLK='\[\033[00;30;30m\]' HBLU='\[\033[01;34;34m\]' BLU='\[\033[00;34;34m\]' YEL='\[\033[00;33;33m\]' WHT='\[\033[01;37;37m\]' PRPL='\[\033[00;34;35m\]' RED='\[\033[01;31;31m\]' NORM='\[\033[01;00;0m\]' GREEN='\[\033[00;32;32m\]' export GRAD1 GRAD2 YLOBRN WHTBRN REDBRN REDBLK PPLBLK WHTBLK NONE HBLK HBLU BLU YEL WHT PRPL RED NORM GREEN # ------------------------- # PS1="$BLU\u$NORM@$GREEN\h $RED\w$YEL $ $NORM" # Plain, no color: #PS1="\u@\h \w $ " PAGER=most; export PAGER; #PAGER="less -is"; export PAGER; # ------------------------- # # Read first /etc/inputrc if the variable is not defined, and after the /etc/inputrc # include the ~/.inputrc [ -z $INPUTRC ] && export INPUTRC=/etc/inputrc PATH=$PATH:/usr/bin:/usr/local/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/X11R6/bin:$HOME/bin:/usr/libexec ENV=$HOME/.bashrc export PATH export ENV # //-----------------------------------------// # Set xterm titles: case $TERM in xterm*|rxvt|Eterm|eterm) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' ;; screen) PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"' ;; esac # //-----------------------------------------// # //-----------------------------------------// # Bind some keys (Home, End, Del): case $TERM in xterm*) [[ "$USER" == "root" ]] &&\ if [ "$COLORTERM" ]; then bind '"\C-h": backward-delete-char' bind '"\e[3~": delete-char' bind '"\e[7~": beginning-of-line' bind '"\e[8~": end-of-line' else bind '"\e[1~": beginning-of-line' bind '"\e[3~": delete-char' bind '"\e[4~": end-of-line' bind '"\177": backward-delete-char' fi ;; cons*) export COLORTERM=$TERM bind '"\C-?": delete-char' # DEL bind '"\C-h": backward-delete-char' # BACKSPACE bind '"\e[H": beginning-of-line' # HOME bind '"\e[F": end-of-line' # END esac # //-----------------------------------------// #if [ -f /usr/local/etc/bash_completion ]; then # . /usr/local/etc/bash_completion #fi alias ls='ls -G'