-
Notifications
You must be signed in to change notification settings - Fork 6
/
.zshenv
55 lines (43 loc) · 1.7 KB
/
.zshenv
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
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
export HOMEBREW_ROOT="/opt/homebrew"
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="$HOMEBREW_ROOT/bin:$HOMEBREW_ROOT/sbin:$PATH"
export PATH="$HOMEBREW_ROOT/opt/postgresql@17/bin:$PATH"
export PATH="$HOME/bin:$PATH"
eval "$(fnm env --use-on-cd --resolve-engines)"
function export_path_if_exists { [[ -d "$1" ]] && export PATH="$1:$PATH" }
export GOPATH=$HOME
export_path_if_exists "$GOPATH/bin"
export_path_if_exists "$HOME/.rbenv/bin" && eval "$(rbenv init --no-rehash - zsh)"
export_path_if_exists "$HOME/.plenv/bin" && eval "$(plenv init - zsh)"
export_path_if_exists "$HOME/mysql-build/bin"
export_path_if_exists $HOMEBREW_ROOT/share/git-core/contrib/workdir
export_path_if_exists $HOMEBREW_ROOT/share/git-core/contrib/diff-highlight
export_path_if_exists $HOMEBREW_ROOT/share/npm/bin && {
export NODE_PATH="$HOMEBREW_ROOT/share/npm/lib/node_modules"
}
if [ -d $HOMEBREW_ROOT/lib/pkgconfig ]; then
export PKG_CONFIG_PATH="$HOMEBREW_ROOT/lib/pkgconfig"
fi
if type bundle > /dev/null; then
alias be='bundle exec'
fi
if type hub > /dev/null; then
alias git=hub
fi
if [ "Darwin" = "$(uname)" ]; then
if [ -x /usr/libexec/java_home ]; then
export JAVA_HOME="$(/usr/libexec/java_home)"
export_path_if_exists "$JAVA_HOME/bin"
fi
export_path_if_exists "$HOMEBREW_ROOT/opt/coreutils/libexec/gnubin"
export RUBY_CONFIGURE_OPTS="--with-readline-dir=$HOMEBREW_ROOT/opt/readline --with-openssl-dir=$HOMEBREW_ROOT/opt/openssl"
export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix zstd)/lib/"
fi
export LANG='ja_JP.UTF-8'
export EDITOR='vim'
export PAGER='less'
export LESS='-R -g -j10 --no-init --quit-if-one-screen'
disable r