zprofile 979 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #
  2. # Editors
  3. #
  4. export EDITOR='nvim'
  5. export VISUAL='nvim'
  6. export PAGER='less'
  7. #
  8. # Language
  9. #
  10. if [[ -z "$LANG" ]]; then
  11. export LANG='en_US.UTF-8'
  12. fi
  13. #
  14. # Paths
  15. #
  16. # Ensure path arrays do not contain duplicates.
  17. typeset -gU cdpath fpath mailpath path
  18. # Set the list of directories that Zsh searches for programs.
  19. path=(
  20. /usr/local/{bin,sbin}
  21. $HOME/go/bin
  22. $path
  23. )
  24. #
  25. # Less
  26. #
  27. # Set the default Less options.
  28. # Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
  29. # Remove -X and -F (exit if the content fits on one screen) to enable it.
  30. export LESS='-g -i -M -R -S -w -z-4'
  31. # Set the Less input preprocessor.
  32. # Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
  33. if (( $#commands[(i)lesspipe(|.sh)] )); then
  34. export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
  35. fi
  36. #
  37. # Temporary Files
  38. #
  39. if [[ ! -d "$TMPDIR" ]]; then
  40. export TMPDIR="/tmp/$LOGNAME"
  41. mkdir -p -m 700 "$TMPDIR"
  42. fi
  43. TMPPREFIX="${TMPDIR%/}/zsh"