You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 jaren geleden
13 jaren geleden
12 jaren geleden
12 jaren geleden
13 jaren geleden
13 jaren geleden
12 jaren geleden
12 jaren geleden
12 jaren geleden
12 jaren geleden
13 jaren geleden
12 jaren geleden
12 jaren geleden
13 jaren geleden
12 jaren geleden
13 jaren geleden
13 jaren geleden
13 jaren geleden
12 jaren geleden
12 jaren geleden
12 jaren geleden
12 jaren geleden
12 jaren geleden
12 jaren geleden
12 jaren geleden
12 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/bin/sh
  2. # # sample of ~/.profile
  3. # . ~/.dotfiles/profile
  4. # # if running bash
  5. # if [ -n "$BASH_VERSION" ]; then
  6. # # include .bashrc if it exists
  7. # if [ -f "$HOME/.bashrc" ]; then
  8. # . "$HOME/.bashrc"
  9. # fi
  10. # fi
  11. # This not works when, for example, inherit parent ENV and load /etc/profile
  12. # again.
  13. #test -n "$DOTFILES_PROFILE" && return
  14. #export DOTFILES_PROFILE=t
  15. # export PS1="\$ "
  16. export LC_TIME=C
  17. export TERMCAP="${TERMCAP}:vb="
  18. export HOSTNAME
  19. export ENV=~/.shrc
  20. mkdir -p $HOME/.local/lib/python/site-packages
  21. export PYTHONDOCS=/usr/share/doc/python/html/
  22. export PYTHONPATH="${PYTHONPATH}:\
  23. ${HOME}/my/bin/py:${HOME}/.local/lib/python/site-packages"
  24. test -f "${HOME}/.dotfiles/rc.py" && \
  25. export PYTHONSTARTUP="${HOME}/.dotfiles/rc.py"
  26. #export PYTHONPATH="~/.local/share/lib/python3.2/site-packages"
  27. export GEM_HOME="$HOME/.local/lib/gems"
  28. export PATH="$PATH:$HOME/.local/lib/gems/bin"
  29. export RUBYLIB="$RUBYLIB:$HOME/.local/lib/gems/lib"
  30. __add_to_path(){
  31. for p in "$@"
  32. do
  33. echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || \
  34. PATH="$p:${PATH}"
  35. done
  36. }
  37. # export PATH="${PATH}:${HOME}/bin"
  38. __add_to_path ${HOME}/.local/bin /c/mingw/bin /c/mingw/msys/1.0/bin
  39. # # it is not so good
  40. # # http://archive.linux.or.jp/JF/JFdocs/Program-Library-HOWTO/shared-libraries.html
  41. # # http://superuser.com/questions/324613/installing-a-library-locally-in-home-directory-but-program-doesnt-recognize-it
  42. # without this ENV i cannot run tmux. another way is to use --disable-shared
  43. # when building tmux
  44. export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
  45. # this should be used when ./configure
  46. #export CFLAGS="$CFLAGS -I$HOME/.local/include"
  47. #_python_pkg_conf="/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig"
  48. PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$_python_pkg_conf"
  49. type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10
  50. # in my environment powerdown does not work
  51. if test -n "$TMPDIR"
  52. then
  53. export TMP=$TMPDIR
  54. else
  55. export TMP=/tmp/
  56. fi
  57. export TMP="${TMP}${USER}-tmp"
  58. export TEMP="$TMP"
  59. mkdir -p "$TMP"