-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zenv.tmpl
60 lines (48 loc) · 1.55 KB
/
dot_zenv.tmpl
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
56
57
58
59
60
export EMAIL={{ .email }}
export NAME={{ .name }}
export MANPAGER="bat --plain"
# General $PATH
export PATH="/usr/local/sbin:$PATH"
export PATH="$HOME/.bin:$PATH"
POSTGRES_BIN_DIR="/Applications/Postgres.app/Contents/Versions/latest/bin"
if [ -d "$POSTGRES_BIN_DIR" ]; then
export PATH=${POSTGRES_BIN_DIR}:$PATH
else
unset POSTGRES_BIN_DIR
fi
# Homebrew
{{ if eq .chezmoi.arch "arm64" }}
# cannot use HOMEBREW_PATH
# see https://github.com/orgs/Homebrew/discussions/3115#discussioncomment-3116576
# export HOMEBREW_PATH="/opt/homebrew"
export PATH="$HOMEBREW_PREFIX/sbin:$PATH"
export PATH="$HOMEBREW_PREFIX/bin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt:$PATH"
{{ else }}
export PATH="/usr/local/opt:$PATH"
export HOMEBREW_PREFIX="/usr/local"
{{ end }}
# Nerd fonts
export NERD_FONT="FiraCode Nerd Font"
# go
export PATH="$HOME/go/bin:$PATH"
# Node and Deno
export DENO_INSTALL="$HOME/.deno";
export PATH="$DENO_INSTALL/bin:$PATH";
# PHP
# export PATH="$HOME/.composer/vendor/bin:$PATH"
# ZSH
export ZSCRIPTS="$HOME/.config/zsh" # Just my personal shorthand
export ZSH="$HOME/.oh-my-zsh"
export UPDATE_ZSH_DAYS=13
export DISABLE_UPDATE_PROMPT="true"
export ENABLE_CORRECTION="false"
export COMPLETION_WAITING_DOTS="true"
export HISTFILE="$HOME/.zhistory" # History filepath
export HISTSIZE=10000 # Maximum events for internal history
export SAVEHIST=10000 # Maximum events in history file
# zplug
export ZPLUG_HOME=$HOMEBREW_PREFIX/opt/zplug
# editor
export EDITOR="nvim"
export VISUAL="code"