]> git.r.bdr.sh - rbdr/dotfiles/blame - runcoms/zprofile
Update deps, fix for linux
[rbdr/dotfiles] / runcoms / zprofile
CommitLineData
fa250235
BB
1#
2# Browser
3#
4
5if [[ "$OSTYPE" == darwin* ]]; then
6 export BROWSER='open'
7fi
8
9#
10# Editors
11#
12
a94ac638
RBR
13export EDITOR='nvim'
14export VISUAL='nvim'
fa250235
BB
15export PAGER='less'
16
17#
18# Language
19#
20
21if [[ -z "$LANG" ]]; then
22 export LANG='en_US.UTF-8'
23fi
24
25#
26# Paths
27#
28
29# Ensure path arrays do not contain duplicates.
30typeset -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.
38path=(
b945717b 39 /opt/homebrew/{bin,sbin}
fa250235
BB
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.
50export 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.
54if (( $#commands[(i)lesspipe(|.sh)] )); then
55 export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
56fi
57
58#
59# Temporary Files
60#
61
62if [[ ! -d "$TMPDIR" ]]; then
63 export TMPDIR="/tmp/$LOGNAME"
64 mkdir -p -m 700 "$TMPDIR"
65fi
66
67TMPPREFIX="${TMPDIR%/}/zsh"