0f1c4e7909faedcebeb8207110d206b66de5b64d
[cmccabe-etc] / .bashrc
1 # .bashrc
2
3 # Source global definitions
4 if [ -f /etc/bashrc ]; then
5         . /etc/bashrc
6 fi
7
8 if [ -f ~/.bashrc-local ]; then
9         . ~/.bashrc-local
10 fi
11
12 xlock2() {
13         ps aux | grep -v grep | grep xscreensaver > /dev/null
14         if [ $? -ne 0 ]; then
15                 echo "starting xscreensaver..."
16                 xscreensaver &
17         fi
18         xscreensaver-command -lock
19 }
20
21 case $- in
22 *i*)
23         # interactive shell
24         alias ls='ls --color=auto'
25         alias mv='mv -i'
26         alias vi='vim'
27         alias wget='wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"'
28         alias grep='grep --color=tty -d skip'
29         export PATH="${PATH}:${HOME}/cmccabe-bin"
30         export EDITOR="/usr/bin/vim"
31         export CSCOPE_EDITOR="${EDITOR}"
32         ;;
33 *)
34         # non-interactive shell
35         ;;
36 esac