Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

54 рядки
1.4 KiB

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