/
dot_path
92 lines (92 loc) 路 4.39 KB
/
dot_path
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
####################################################################################################################################
########################## PATH ######################################################################
########################## https://dotfiles.download ######################################################################
####################################################################################################################################
####################################################
# Go Lang #
####################################################
exists asdf && GOV=$(asdf where golang) && export GOROOT=$GOV/go
exists go && export GOPATH="$HOME/go" && export PATH=${PATH}:$(go env GOPATH)/bin
####################################################
# Java #
####################################################
if [ -d $HOME/.sdkman ]; then
export SDKMAN_INIT="$HOME/.sdkman/bin/sdkman-init.sh"
else
exists javac && export JAVA_HOME="$(/usr/libexec/java_home)" && export PATH="${JAVA_HOME}/bin:${PATH}"
fi
####################################################
# Android #
####################################################
if [ -d $HOME/Library/Android ]; then
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
fi
####################################################
# Tools #
####################################################
export PATH="/usr/local/opt/ncurses/bin:$PATH"
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
export PATH="/usr/local/opt/openal-soft/bin:$PATH"
export PATH="/usr/local/opt/libpq/bin:$PATH"
export PATH="$HOME/.poetry/bin:$PATH"
export PATH="$HOME/.serverless/bin:$PATH"
export PATH="/usr/local/Cellar/mtr/0.94/sbin:$PATH"
export PATH="$HOME/.serverless/bin:$PATH"
export PATH="$HOME.fnm:$PATH"
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
####################################################
# --httptoolkit-- #
####################################################
# This section will be reset each time a HTTP Toolkit terminal is opened
if [ -n "$HTTP_TOOLKIT_ACTIVE" ]; then
# When HTTP Toolkit is active, we inject various overrides into PATH
export PATH="/Applications/HTTP Toolkit.app/Contents/Resources/app/httptoolkit-server/overrides/path:$PATH"
if which winpty >/dev/null 2>&1; then
# Work around for winpty's hijacking of certain commands
alias php=php
alias node=node
fi
fi
# --httptoolkit-end--
####################################################
# Dotfile Scripts #
####################################################
if (is-macos); then
export PATH="$HOME/Scripts/bin:/usr/local/opt/gnu-getopt/bin:$PATH"
fi
if (is-linux); then
export PATH="$HOME/scripts/bin:$PATH"
fi
####################################################
# System #
####################################################
export PATH=/usr/local/bin:${PATH}:/sbin:/usr/local/sbin
export PATH="$HOME/.local/bin:$PATH"
####################################################
# Cleanup Path #
####################################################
# typeset -gU path
####################################################
# Rust #
####################################################
if [ -d $HOME/.cargo ]; then
export PATH="$HOME/.cargo/bin:$PATH"
fi
####################################################
# User PATH #
# Add your ENV after this line #
# to avoid merge conflicts #
####################################################
export PATH="$HOME/Dev/git-fuzzy/bin:$PATH"
PATH=/usr/ffbin:$PATH
####################################################
# Tools #
####################################################
if [ -d /usr/local/opt/elasticsearch ]; then
export PATH="/usr/local/opt/elasticsearch@6/bin:$PATH"
fi