env 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # vim: ft=sh
  2. export EDITOR='vim'
  3. export PAGER='less'
  4. # Default Flags for `less`
  5. # e = quit at end of file
  6. # i = searches ignore case, unless there are upper case characters
  7. # r = display raw control characters (Ctrl-A is ^A)
  8. # M = verbose `less` prompt
  9. # X = disable termcap init/deinit strings - sometimes these clear the screen.
  10. export LESS='-iRMX'
  11. # Paths
  12. export PATH=$HOME/dotfiles/bin:$PATH
  13. export MANPATH=$MANPATH:$HOME/dotfiles/shell/man
  14. # Config Files: Which Are Sourced, And When?
  15. #
  16. # # BASH
  17. #
  18. # .bash_profile: interactive login
  19. # .bash_login: as above but lower preference
  20. # .profile: as above but lower preference
  21. # .bashrc: interactive non-login
  22. #
  23. # Interactive = not a script.
  24. # Login = shell that starts with a computer, or connection from tty or ssh.
  25. # Non-login = shell that starts from a terminal emulator or GUI.
  26. # So, put things mostly in `.bashrc`, source from `.bash_profile`.
  27. #
  28. # # ZSH
  29. #
  30. # .zshenv: (always)
  31. # .zprofile: [[ -o login ]]
  32. # .zshrc: [[ -o interactive ]]
  33. # .zlogin: [[ -o login ]]
  34. #
  35. # As seen, `zshenv` is sourced on all invocations of zsh. It is useful for
  36. # setting variables that should be available to other programs e.g. `PATH`,
  37. # `EDITOR`, `PAGER`, and generally not the place to put commands that produce
  38. # output or assume attachment to a tty/terminal.