Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

profile 1.8 KiB

há 11 anos
há 13 anos
há 12 anos
há 11 anos
há 13 anos
há 12 anos
há 13 anos
há 11 anos
há 13 anos
há 13 anos
há 12 anos
há 11 anos
há 11 anos
há 11 anos
há 11 anos
há 12 anos
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. export GEM_HOME="$HOME/.local/lib/gems"
  20. export PATH="$PATH:$HOME/.local/lib/gems/bin"
  21. export RUBYLIB="$RUBYLIB:$HOME/.local/lib/gems/lib"
  22. __add_to_path(){
  23. for p in "$@"
  24. do
  25. echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || \
  26. PATH="$p:${PATH}"
  27. done
  28. }
  29. # export PATH="${PATH}:${HOME}/bin"
  30. __add_to_path ${HOME}/.local/bin /c/mingw/bin /c/mingw/msys/1.0/bin
  31. # # it is not so good
  32. # # http://archive.linux.or.jp/JF/JFdocs/Program-Library-HOWTO/shared-libraries.html
  33. # # http://superuser.com/questions/324613/installing-a-library-locally-in-home-directory-but-program-doesnt-recognize-it
  34. # without this ENV i cannot run tmux. another way is to use --disable-shared
  35. # when building tmux
  36. export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
  37. # this should be used when ./configure
  38. #export CFLAGS="$CFLAGS -I$HOME/.local/include"
  39. type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10
  40. # in my environment powerdown does not work
  41. if test -n "$TMPDIR"
  42. then
  43. export TMP=$TMPDIR
  44. else
  45. export TMP=/tmp/
  46. fi
  47. export TMP="${TMP}${USER}-tmp"
  48. export TEMP="$TMP"
  49. mkdir -p "$TMP"
  50. echo .dotfiles/profile processed.