]> git.r.bdr.sh - rbdr/dotfiles/blob - runcoms/zprofile
Update deps, fix for linux
[rbdr/dotfiles] / runcoms / zprofile
1 #
2 # Browser
3 #
4
5 if [[ "$OSTYPE" == darwin* ]]; then
6 export BROWSER='open'
7 fi
8
9 #
10 # Editors
11 #
12
13 export EDITOR='nvim'
14 export VISUAL='nvim'
15 export PAGER='less'
16
17 #
18 # Language
19 #
20
21 if [[ -z "$LANG" ]]; then
22 export LANG='en_US.UTF-8'
23 fi
24
25 #
26 # Paths
27 #
28
29 # Ensure path arrays do not contain duplicates.
30 typeset -gU cdpath fpath mailpath path
31
32 # Set the the list of directories that cd searches.
33 # cdpath=(
34 # $cdpath
35 # )
36
37 # Set the list of directories that Zsh searches for programs.
38 path=(
39 /opt/homebrew/{bin,sbin}
40 $path
41 )
42
43 #
44 # Less
45 #
46
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'
51
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>&-"
56 fi
57
58 #
59 # Temporary Files
60 #
61
62 if [[ ! -d "$TMPDIR" ]]; then
63 export TMPDIR="/tmp/$LOGNAME"
64 mkdir -p -m 700 "$TMPDIR"
65 fi
66
67 TMPPREFIX="${TMPDIR%/}/zsh"