選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

README.txt 1.9 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Dotfiles
  2. ========
  3. First Principle
  4. ---------------
  5. __Do not go out of ways how the default environments work__.
  6. There are many cases when I must work on foreign environments, and it is always
  7. VERY irritating when things do not work as I expected, yet setting up my own
  8. environment is troublesome. So I avoid changing behaviors of tools, except
  9. for emacs.
  10. Emacs is the editor I usually use for coding. I decided to change the behavior
  11. of emacs as I want without thinking about other environments. When I cannot use
  12. my emacs.el I'll use vi or vim instead.
  13. Other tools like bash and vim basically work in the same ways even when using my
  14. rc files. The main changes are related to showing informations, typically in the
  15. bash prompt.
  16. shrc.common
  17. -----------
  18. `setup.sh` will create file "$HOME/.shrc.common". This file define some
  19. variables that can be used to detect system type. This file is sourced from
  20. both `setup.sh` and `shrc`.
  21. Sourcing flow
  22. -------------
  23. 1. $HOME/.profile
  24. Sourced if:
  25. currnet shell is login shell and
  26. (current shell is sh ||
  27. (current shell is bash && $HOME/.bash_profile does not exist) ||
  28. (current shell is zsh && $HOME/.zprofile does not exist))
  29. This file set ENV to $HOME/.shrc , which is loaded when sh is run interactively.
  30. Add lines like `test -n "$BASH_VERSION" && . "$HOME/.bashrc"` .
  31. 3. $HOME/.shrc
  32. Sourced through ENV when shell is sh, and $HOME/.{ba,z}shrc if bash or zsh
  33. respectively. Source $HOME/.dotfiles/shrc .
  34. 3. $HOME/.{ba,z}shrc
  35. Sourced when current shell is bash or zsh respectively and current shell is not
  36. login shell. When current shell is login shell, these files are sourced
  37. explicitly by $HOME/.bash_profile or $HOME/.zprofile .
  38. $HOME/.{ba,z}shrc <= bash, zsh
  39. |
  40. `--$HOME/.shrc <= sh
  41. |
  42. `--$HOME/.dotfiles/shrc
  43. ~/.xinitrc <= startx
  44. |
  45. `--openbox-session
  46. |
  47. |--~/.dotfiles/xprofile
  48. |
  49. `--~/.dotfiles/xprograms