zshenv 758 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Defines environment variables.
  3. #
  4. # Authors:
  5. # Sorin Ionescu <sorin.ionescu@gmail.com>
  6. #
  7. # Ensure that a non-login, non-interactive shell has a defined environment.
  8. if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
  9. source "${ZDOTDIR:-$HOME}/.zprofile"
  10. fi
  11. # history-substring-search seems broken without this
  12. export DEBIAN_PREVENT_KEYBOARD_CHANGES=yes
  13. if [[ $OSTYPE == linux* ]] && [[ -n "$DISPLAY" ]]; then
  14. # TERM=xterm.* may behave oddly if not in X
  15. # e.g. newline works with Ctrl+O but *not* with 'return'.
  16. export TERM=xterm-256color
  17. fi
  18. export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
  19. export LIBVIRT_DEFAULT_URI=qemu:///system
  20. # Local Variables:
  21. # mode: sh
  22. # End: