No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

README.txt 2.2 KiB

hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 11 años
hace 12 años
hace 11 años
hace 12 años
hace 12 años
hace 12 años
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. 2.$HOME/{.bash_profile,.zprofile}
  32. Sourced if current shell is login shell and shell is bash or zsh.
  33. Srouce $HOME/.profile .
  34. 3. $HOME/.shrc
  35. Sourced through ENV when shell is sh, and $HOME/.{ba,z}shrc if bash or zsh
  36. respectively. Source $HOME/.dotfiles/shrc .
  37. 4. $HOME/.{ba,z}shrc
  38. Sourced when current shell is bash or zsh respectively and current shell is not
  39. login shell. When current shell is login shell, these files are sourced
  40. explicitly by $HOME/.profile . Source $HOME/.shrc .
  41. $HOME/{.bash_profile,.zprofile} <= login with bash/zsh
  42. |
  43. `--$HOME/.profile <= login with sh
  44. | |
  45. | `--$HOME/.{ba,z}shrc <= bash, zsh
  46. | |
  47. `----`--$HOME/.shrc <= sh
  48. |
  49. `--$HOME/.dotfiles/shrc
  50. ~/.xinitrc <= startx
  51. |
  52. `--openbox-session
  53. |
  54. |--~/.dotfiles/xprofile
  55. |
  56. `--~/.dotfiles/xprograms