# .bashrc for myers@meitner.physics.lsa.umich.edu # @(#) $Id: .bashrc,v 1.2 1999/08/02 23:41:40 myers Exp myers $ ###################################################################### # Global definitions: if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Now any changes: # Command prompt: case $TERM in xterm*) PROMPT_COMMAND='echo -ne "\033]0;`whoami`@${HOSTNAME}\007"' ;; *) ;; esac PS1="[\W]\$ " # User specific aliases (those with arguments should be functions) alias emacs="emacs -nw" alias ls="ls -F" alias mroe="more" alias rm='rm -i' alias mv='mv -i' alias cp='cp -i' alias cx="chmod +x" alias cw="chmod +w" alias hide="chmod go-rwx" alias unhide="chmod go+r" alias h="history" alias c="clear" alias ll="ls -Flg" alias pd='pushd' alias pop="popd" alias which="type -path" # Shell functions: dirf () { # "full" directory listing ls -ltFg $* | more } ffind () { # find a file quickly PAT=$1; shift find . -name "*$PAT*" $* -print } psgrep () { # list specified process ps -aux | grep $1 | grep -v grep } du-s () { du -s * | sort -n } ################# INFOPATH="/usr/info:/usr/local/info:/opt/egcs/info" export INFOPATH MOZILLA_HOME="/usr/local/netscape" export MOZILLA_HOME # Root shells should be limited if [ `whoami` = 'root' ];then TMOUT=3600 PS1="[\W]# " fi