-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.zshenv
More file actions
55 lines (49 loc) · 1.59 KB
/
.zshenv
File metadata and controls
55 lines (49 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Editor selection
for VI in /usr/local/bin/vim /opt/homebrew/bin/vim /usr/bin/vim /opt/homebrew/bin/vise /usr/local/bin/nvi /usr/bin/vi; do
if [ -x $VI ]; then
export EDITOR=$VI
export VISUAL=$VI
export SUDO_EDITOR=$VI
break
fi
done
# FZF configuration
export FZF_DEFAULT_OPTS="--extended --bind ctrl-a:select-all --height 60%"
export FZF_DEFAULT_COMMAND='fd --type f'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# Shell and display settings
export FPATH=/usr/share/zsh/site-functions:/opt/homebrew/share/zsh/site-functions:$FPATH
export GREP_COLORS="ms=01;31:mc=:sl=:cx=:fn=:ln=:bn=:se=:ne="
export CLICOLOR=yes
export LC_CTYPE=en_US.UTF-8
export LESSHISTFILE="-"
export MANPATH=/usr/man:/usr/share/man:/usr/local/man:/usr/local/share/man:/usr/lang/man:/usr/pkg/man
# PATH configuration
path=(
/usr/bin /bin /usr/sbin /sbin
/usr/local/bin /usr/local/sbin
/opt/homebrew/bin /opt/homebrew/opt/llvm/bin
$X11HOME/bin
$HOME/go/bin
~/bin
/usr/local/libexec/git-core
~/.cabal/bin
~/.cargo/bin
~/.local/bin
~/.pub-cache/bin
~/dev/flutter/bin
~/Library/Android/sdk/platform-tools
~/Library/Android/sdk/cmdline-tools/latest/bin
~/Library/Android/sdk/emulator
)
# Add texlive to PATH if it exists (use the latest version)
texlive_dirs=(/usr/local/texlive/20*/bin/*(N))
if [[ ${#texlive_dirs[@]} -gt 0 ]]; then
path+=(${texlive_dirs[-1]}) # Add the last (most recent) matching directory
fi
# For runit
export SVDIR=/var/service
# Development environments
export GOPATH=$HOME
export ANDROID_HOME=~/Library/Android/sdk
export ANDROID_SDK_ROOT=$ANDROID_HOME