# Last edited on 2009-03-20 17:35:41 by stolfi
# Defines aliases and other environment variables that 
# are not inherited together with $PATH:

#==== COMMAND ALIASES ================================================

# Fix the font path for a 100dpi screen

alias 100dpi 'xset +fp /usr/X11R6/lib/X11/fonts/100dpi'
alias  75dpi 'xset +fp /usr/X11R6/lib/X11/fonts/75dpi'

# editors 

setenv EDITOR "stolfi-emacs"
alias e "${EDITOR} \!* &"

# Screen lock

alias xlock "xscreensaver-command -lock"

# directory commands

alias ls   '/bin/ls'
alias laf  '/bin/ls -aF \!*'
alias ll   '/bin/ls -al \!*'
alias lld  '/bin/ls -ald \!*'

alias rdd remove-dated-dir

# Process listing

alias psa '/bin/ps augx'
alias psc '/bin/ps augxw | /bin/sort | /usr/bin/expand | /bin/cut -c1-14,43-'

# Postscript/PDF viewing

# alias gv ghostview
alias kgv kghostview
alias acr acroread

# MSDOS diskette commands

alias mcd 'setenv MCWD \!:1'
alias mpwd 'printenv MCWD'

# ping (tests whether an INTERNET address is alive)

alias ping /bin/ping

# mem (virtual memory status)

alias mem /usr/bin/free -k 

# cpu (processor information)

alias cpu /bin/cat /proc/cpuinfo

# Prompt on a line by itself:

alias longprompt 'set prompt  = ">>> ${USER}@${HOSTNAME} \\!>>>\\
"'

# top (active processes)

alias top /usr/bin/top

# compiled gdb

alias gdb53 ${STOLFIHOME}/pkg/gdb-5.3-2/PUB/i686-Linux-2.4/bin/gdb

# Portuguese sort 

alias ptsort '( setenv LC_ALL pt_BR.iso88591; sort \!* )'
alias pt-sort ptsort
