Command Prompt Help

.bashrc (terminal colors, path, etc)

alias ls='ls -GF'

## If the directory (di) color is specified for ls, change it to 00;34;1.
#export LS_COLORS=`echo $LS_COLORS | sed -e "s/di=\([^:]*\)/di=00;34;1/"`
#export LS_COLORS="${LS_COLORS}*.hpp=00;36:*.hh=00;36:*.h=00;36:*.cpp=00;32:*.cc=00;32:*.c=00;32:*akefile=00;35:*.mk=00;35:"

#set the prompt                                                                                                        
#only for interactive shells                                                                                           
# http://en.tldp.org/HOWTO/Bash-Prompt-HOWTO/                                                                          
if [ "$PS1" ]; then
    #pag default                                                                                                       
    #PS1='[\u@\h \W]\$ '                                                                                               
    # dfr old setting                                                                                                  
    #export PS1='[\h:\W]$ '                                                                                            
    # cygwin variant                                                                                                   
    export PS1='\n\[\033]0;\w\007\033[32m\]\u@\h \[\033[33m\w\033[0m\]\n$ '
    #dfr same as above but makes command line cyan                                                                     
    #export PS1='\[\033]0;\w\007                                                                                       
    #\033[32m\]\u@\h \[\033[33m\w\033[0m\]                                                                             
    #\[\033[0;36m\]$ '                                                                                                 
    export INTERACTIVE_SHELL=1
else
    export INTERACTIVE_SHELL=0
fi

## example path additions
# export PATH=$PATH:/usr/X11R6/bin:/opt/local/bin:/opt/local/sbin:/Applications/Emacs.app/Contents/MacOS

## example editor for svn
# export EDITOR=/usr/bin/emacs

# example aliases aliases
alias ll="ls -l"
alias la="ls -a"
alias lal="ls -al"

alias grep="grep --color=always"

# example environment variables. 
# usage: $ cd $HM/app
HM=/Users/lucy/Projects/ThoughtAndMemory/trunk/web/hm

make caps into ctrl

clear Lock remove Lock = Caps_Lock remove Control = Control_L keysym Control_R = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L keycode 0x7e = Control_R add Control = Control_R

back to the FAQ