X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.bash_profile;h=e905a8665a1222b89b75ea4e31e5398a187c0e05;hb=2da9ea6da645cdb26ca23d12f7f52c60351f3a4c;hp=35cd3b83006c8dfa105904797af37e62f9b32479;hpb=8c75606a52da5a4df6018134e0806e7041ca69e1;p=profile.git diff --git a/.bash_profile b/.bash_profile old mode 100755 new mode 100644 index 35cd3b8..e905a86 --- a/.bash_profile +++ b/.bash_profile @@ -1,52 +1,7 @@ -# $Id$ -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 +#echo "$(date +'%F %T'): pid: $$; ppid: $PPID; tty: $(tty); .bash_profile" >> ~/.nx/spam +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` +#export IP01=.bash_profile +#export IP01BASH_PROFILE=.bash_profile