Redirect stderr when finding files.
[profile.git] / .bash_profile
1 # $Id$
2 for i in ~/.profile.d/*.bashrc; do . $i; done
3 __ps1
4
5 unset XMODIFIERS #:-(
6 export SSHTERM="urxvt"
7 export SSHTERM_TITLE="-title"
8 export SSHTERM_EXEC="-e"
9
10 if [ "$OSTYPE" = "cygwin" ]; then
11   shopt -s nocaseglob
12 fi
13
14 #[ "$TERM" = "xterm-color" ] && export TERM=xterm-xfree86
15 export PATH=~/bin:"$PATH"
16
17 function upload() {
18   if [ $# = 0 ]; then
19     echo usage: upload file [file...]
20     return 100
21   fi
22   pwd=$PWD/
23   pwd=${pwd##/home/iain/www/}
24   if echo $pwd | grep -q ^/; then
25     echo not rooted under /home/iain/www
26     unset pwd
27     return 111
28   fi
29 # scp ${1+"$@"} 64.176.170.109:/home/iain/$pwd
30   lftp -c "open web1.viagold.net; cd $pwd; mput $@"
31   unset pwd
32 }
33
34 function download() {
35   if [ $# = 0 ]; then
36     echo usage: download file [file...]
37     return 100
38   fi
39   pwd=$PWD/
40   pwd=${pwd##/home/iain/www/}
41   if echo $pwd | grep -q ^/; then
42     echo not rooted under /home/iain/www
43     unset pwd
44     return 111
45   fi
46 # scp ${1+"$@"} 64.176.170.109:/home/iain/$pwd
47   lftp -c "open web1.viagold.net; cd $pwd; mget $@"
48   unset pwd
49 }
50 alias debug='valgrind --leak-check=yes --show-reachable=yes --num-callers=5 --verbose'
51
52 eval `dircolors -b`