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.

преди 10 години
преди 8 години
преди 10 години
преди 10 години
преди 10 години
преди 8 години
преди 10 години
преди 9 години
преди 10 години
преди 9 години
преди 10 години
преди 9 години
преди 10 години
преди 10 години
преди 9 години
преди 8 години
преди 8 години
преди 8 години
преди 6 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 9 години
преди 8 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. #!/bin/sh
  2. # profile --- 10sr profile
  3. __safe_add_path_r(){
  4. # add path to right
  5. test -d "$1" && PATH="${PATH}:$1"
  6. }
  7. __safe_add_path_l(){
  8. # add path to left
  9. test -d "$1" && PATH="$1:${PATH}"
  10. }
  11. __safe_add_path_l "$HOME/.cabal/bin"
  12. __safe_add_path_l "$HOME/.local/lib/gems/bin"
  13. __safe_add_path_l "$HOME/.gem/ruby/2.1.0/bin"
  14. __safe_add_path_r "/c/mingw/bin"
  15. __safe_add_path_r "/c/mingw/msys/1.0/bin"
  16. export GEM_HOME="$HOME/.local/lib/gems"
  17. export RUBYLIB="$RUBYLIB:$HOME/.local/lib/gems/lib"
  18. # in my environment powerdown does not work
  19. test -z "$DISPLAY" && test -z "$SSH_CONNECTION" && \
  20. type setterm >/dev/null 2>&1 && \
  21. setterm -blank 30 -powersave on # -powerdown 10
  22. ##################################
  23. # EnvVal definitions
  24. test "$TERM" = linux && export LANG=C
  25. export LC_MESSAGES=C
  26. export LC_TIME=C
  27. export TERMCAP="${TERMCAP}:vb="
  28. # export ENV=~/.shrc
  29. export PAGER="less"
  30. export LESS="-iRM"
  31. # Style for lesspipe is defined in esc.style
  32. _src_hilite_lp_path="`command -v src-hilite-lesspipe.sh 2>/dev/null`"
  33. for f in /usr/share/source-highlight/src-hilite-lesspipe.sh
  34. do
  35. test -z "$_src_hilite_lp_path" && test -e "$f" && _src_hilite_lp_path="$f"
  36. done
  37. test -n "$_src_hilite_lp_path" && export LESSOPEN="| $_src_hilite_lp_path %s"
  38. if false which nvim >/dev/null
  39. then
  40. _VI_ALT=nvim
  41. elif which vim >/dev/null
  42. then
  43. _VI_ALT=vim
  44. elif which vi >/dev/null
  45. then
  46. _VI_ALT=vi
  47. fi
  48. if test -n "$_VI_ALT"
  49. then
  50. export EDITOR="$_VI_ALT"
  51. export GIT_EDITOR="$EDITOR"
  52. export VISUAL="$EDITOR"
  53. fi
  54. # export CDPATH=".:~"
  55. export GIT_PAGER="less -FX"
  56. export GIT_MERGE_AUTOEDIT=no
  57. if test -n "$TMUX" && \
  58. expr "$TERM" : screen >/dev/null && \
  59. expr "`tmux display -p '#{client_termname}'`" : '.*-256color$' >/dev/null
  60. then
  61. TERM=screen-256color
  62. fi
  63. if test -z "$USER" -a -n "$USERNAME"
  64. then
  65. export USER=$USERNAME
  66. fi
  67. # set TMP, TEMP, TMPDIR
  68. if test -z "$TMP"
  69. then
  70. if test -n "$TMPDIR"
  71. then
  72. export TMP=$TMPDIR
  73. elif test -n "$TEMP"
  74. then
  75. export TMP="$TEMP"
  76. else
  77. export TMP=/tmp
  78. fi
  79. fi
  80. expr "$TMP" : ".*$USER-tmp" >/dev/null || export TMP="${TMP}/${USER}-tmp"
  81. export TEMP=$TMP
  82. export TMPDIR=$TMP
  83. test -d "$TMP" || mkdir -p "$TMP"
  84. if test -d ~/dbx
  85. then
  86. export CHIT_PATH="$HOME/dbx/.chit"
  87. fi
  88. export JAVA_OPTS="$JAVA_OPTS -Duser.language=en"
  89. export GOPATH="$HOME/my/go"
  90. export PATH="$GOPATH/bin:$PATH"
  91. export PIPENV_VENV_IN_PROJECT=1
  92. ###########################################
  93. # Host colors
  94. export _HOSTCOLOR_1=
  95. export _HOSTCOLOR_2=
  96. # black red green yellow blue magenta cyan white
  97. # Yellow is hard to read strings...
  98. case "`hostname`" in
  99. arch-vb-win8-vaio11)
  100. _HOSTCOLOR_1=magenta
  101. _HOSTCOLOR_2=white
  102. ;;
  103. darwin-mba.local)
  104. _HOSTCOLOR_1=cyan
  105. _HOSTCOLOR_2=black
  106. ;;
  107. newkiwi)
  108. _HOSTCOLOR_1=magenta
  109. _HOSTCOLOR_2=white
  110. ;;
  111. debian-vb-win7-opti)
  112. _HOSTCOLOR_1=red
  113. _HOSTCOLOR_2=white
  114. ;;
  115. *)
  116. _HOSTCOLOR_1=green
  117. _HOSTCOLOR_2=black
  118. ;;
  119. esac