25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.1 KiB

  1. #!/bin/sh
  2. # ~/.dotfiles/profile
  3. # export PS1="\$ "
  4. export LC_TIME=C
  5. export TERMCAP="${TERMCAP}:vb="
  6. export HOSTNAME
  7. export ENV=~/.shrc
  8. export PYTHONDOCS=/usr/share/doc/python/html/
  9. export PYTHONPATH="${PYTHONPATH}:\
  10. ${HOME}/my/bin/py:${HOME}/.local/lib/python/site-packages"
  11. test -f "${HOME}/.dotfiles/rc.py" && \
  12. export PYTHONSTARTUP="${HOME}/.dotfiles/rc.py"
  13. #export PYTHONPATH="~/.local/share/lib/python3.2/site-packages"
  14. __add_to_path(){
  15. for p in "$@"
  16. do
  17. echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || \
  18. PATH="${PATH}:$p"
  19. done
  20. }
  21. # export PATH="${PATH}:${HOME}/bin"
  22. __add_to_path ${HOME}/.local/bin /c/mingw/bin /c/mingw/msys/1.0/bin
  23. # it is not so good
  24. # http://archive.linux.or.jp/JF/JFdocs/Program-Library-HOWTO/shared-libraries.html
  25. export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
  26. type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10
  27. # in my environment powerdown does not work
  28. if test -n $TMPDIR
  29. then
  30. export TMP=$TMPDIR
  31. else
  32. export TMP=/tmp/
  33. export TMP="${TMP}${USER}-tmp"
  34. export TEMP="$TMP"
  35. mkdir -p "$TMP"