env 999 B

123456789101112131415161718192021222324252627282930313233
  1. # vim: ft=sh
  2. export EDITOR='vim'
  3. export PAGER='less'
  4. # Paths
  5. export PATH=$HOME/dotfiles/bin:$PATH
  6. export MANPATH=$MANPATH:$HOME/dotfiles/shell/man
  7. # Config Files: Which Are Sourced, And When?
  8. #
  9. # # BASH
  10. #
  11. # .bash_profile: interactive login
  12. # .bash_login: as above but lower preference
  13. # .profile: as above but lower preference
  14. # .bashrc: interactive non-login
  15. #
  16. # Interactive = not a script.
  17. # Login = shell that starts with a computer, or connection from tty or ssh.
  18. # Non-login = shell that starts from a terminal emulator or GUI.
  19. # So, put things mostly in `.bashrc`, source from `.bash_profile`.
  20. #
  21. # # ZSH
  22. #
  23. # .zshenv: (always)
  24. # .zprofile: [[ -o login ]]
  25. # .zshrc: [[ -o interactive ]]
  26. # .zlogin: [[ -o login ]]
  27. #
  28. # As seen, `zshenv` is sourced on all invocations of zsh. It is useful for
  29. # setting variables that should be available to other programs e.g. `PATH`,
  30. # `EDITOR`, `PAGER`, and generally not the place to put commands that produce
  31. # output or assume attachment to a tty/terminal.