X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.bash_profile;h=58f8c11feb6d225823e0f88a3440683bb7a70054;hp=bffd784a72a091b3090299f9748e931b3cf4a0b1;hb=42b87d14b952594606783e373badd8aca1b1eb8f;hpb=7ff1edff9e3b22a1fd1f7798a634538d7ed94c54 diff --git a/.bash_profile b/.bash_profile old mode 100755 new mode 100644 index bffd784..58f8c11 --- a/.bash_profile +++ b/.bash_profile @@ -1,51 +1,5 @@ -for i in ~/.profile.d/*.bashrc; do . $i; done -__ps1 - -unset XMODIFIERS #:-( -export SSHTERM="urxvt" -export SSHTERM_TITLE="-title" -export SSHTERM_EXEC="-e" - -if [ "$OSTYPE" = "cygwin" ]; then - shopt -s nocaseglob +# $Id$ +if $(tty -s) || [ "${0:0:1}" = "-" ]; then + for i in ~/.profile.d/*.bashrc; do . $i; done; unset i + __ps1 fi - -#[ "$TERM" = "xterm-color" ] && export TERM=xterm-xfree86 -export PATH=~/bin:"$PATH" - -function upload() { - if [ $# = 0 ]; then - echo usage: upload file [file...] - return 100 - fi - pwd=$PWD/ - pwd=${pwd##/home/iain/www/} - if echo $pwd | grep -q ^/; then - echo not rooted under /home/iain/www - unset pwd - return 111 - fi -# scp ${1+"$@"} 64.176.170.109:/home/iain/$pwd - lftp -c "open web1.viagold.net; cd $pwd; mput $@" - unset pwd -} - -function download() { - if [ $# = 0 ]; then - echo usage: download file [file...] - return 100 - fi - pwd=$PWD/ - pwd=${pwd##/home/iain/www/} - if echo $pwd | grep -q ^/; then - echo not rooted under /home/iain/www - unset pwd - return 111 - fi -# scp ${1+"$@"} 64.176.170.109:/home/iain/$pwd - lftp -c "open web1.viagold.net; cd $pwd; mget $@" - unset pwd -} -alias debug='valgrind --leak-check=yes --show-reachable=yes --num-callers=5 --verbose' - -eval `dircolors -b`