1
0

zlogin 1007 B

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