zlogin 1.1 KB

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