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 години
преди 13 години
преди 13 години
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. if [ -n "${DESKTOP_SESSION}" ]; then
  3. xmodmap -e 'keycode 135 = Alt_R Meta_R' # menu key as alt
  4. xmodmap -e 'keycode 101 = Alt_R Meta_R' # hiragana key as alt
  5. xmodmap -e 'remove Lock = Caps_Lock'
  6. xmodmap -e 'add Control = Caps_Lock'
  7. synclient VertEdgeScroll=0
  8. synclient HorizEdgeScroll=0
  9. synclient MaxTapTime=0
  10. synclient MaxSpeed=0.4
  11. synclient MinSpeed=0.2
  12. fi
  13. export LC_TIME=C
  14. export TERMCAP="${TERMCAP}:vb="
  15. export HOSTNAME
  16. export BROWSER=firefox
  17. # export TMP=/tmp
  18. # export TEMP=/tmp
  19. addtopath(){
  20. for p in "$@"
  21. do
  22. echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || PATH="$p:${PATH}"
  23. done
  24. }
  25. # export PATH="${PATH}:${HOME}/bin:${HOME}/dbx/dev/bin"
  26. addtopath ${HOME}/bin
  27. type git 1>/dev/null 2>&1 && test ! -f ~/.gitconfig && {
  28. # export GISTY_DIR="$HOME/dev/gists"
  29. git config --global user.name "10sr"
  30. git config --global user.email sr10@users.sourceforge.jp
  31. git config --global core.autocrlf false
  32. git config --global alias.log-all "log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d%Creset'"
  33. git config --global alias.log-all2 'log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short'
  34. git config --global alias.log-all3 "log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short"
  35. # git config --global github.token **
  36. }
  37. test -f "${HOME}/.pythonrc" && export PYTHONSTARTUP="${HOME}/.pythonrc"
  38. export PYTHONPATH=~/.py