您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12 年前
13 年前
13 年前
12 年前
13 年前
12 年前
13 年前
13 年前
13 年前
12 年前
12 年前
12 年前
12 年前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$_python_pkg_conf"
  49. export MANPATH="$MANPATH:$HOME/.local/share/man"
  50. type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10
  51. # in my environment powerdown does not work
  52. if test -n "$TMPDIR"
  53. then
  54. export TMP=$TMPDIR
  55. else
  56. export TMP=/tmp/
  57. fi
  58. export TMP="${TMP}${USER}-tmp"
  59. export TEMP="$TMP"
  60. mkdir -p "$TMP"