5 if [[ "$OSTYPE" == darwin* ]]; then
21 if [[ -z "$LANG" ]]; then
22 export LANG='en_US.UTF-8'
29 # Ensure path arrays do not contain duplicates.
30 typeset -gU cdpath fpath mailpath path
32 # Set the the list of directories that cd searches.
37 # Set the list of directories that Zsh searches for programs.
39 /opt/homebrew/{bin,sbin}
47 # Set the default Less options.
48 # Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
49 # Remove -X and -F (exit if the content fits on one screen) to enable it.
50 export LESS='-F -g -i -M -R -S -w -X -z-4'
52 # Set the Less input preprocessor.
53 # Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
54 if (( $#commands[(i)lesspipe(|.sh)] )); then
55 export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
62 if [[ ! -d "$TMPDIR" ]]; then
63 export TMPDIR="/tmp/$LOGNAME"
64 mkdir -p -m 700 "$TMPDIR"
67 TMPPREFIX="${TMPDIR%/}/zsh"