Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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