-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.exports
54 lines (52 loc) · 1.79 KB
/
.exports
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
#!/bin/bash
# constants
export ARCH=$(uname -m)
[[ $ARCH == "arm64" ]] &&
export CPU="Apple silicon" &&
export HOMEBREW_PREFIX=/opt/homebrew &&
export HOMEBREW_REPOSITORY=$HOMEBREW_PREFIX
[[ $ARCH == "x86_64" ]] &&
export CPU="Intel" &&
export HOMEBREW_PREFIX=/usr/local &&
export HOMEBREW_REPOSITORY=$HOMEBREW_PREFIX/Homebrew
export HOMEBREW_FORCE_BREWED_CURL=1
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_CELLAR=$HOMEBREW_PREFIX/Cellar
export MANPATH=$HOMEBREW_PREFIX/share/man
export INFOPATH=$HOMEBREW_PREFIX/share/info
export PAGER=/usr/bin/less
export CLICOLOR=1
export DOTNET_ROOT=$HOMEBREW_PREFIX/opt/dotnet/libexec
export HOST_UID=$(id -u)
export USERNAME=$(whoami)
export NAME=$(eval "dscl . -read "/Users/$(whoami | awk '{print $1}')" RealName | sed -n 's/^ //g;2p'")
export NAME_ARRAY=($NAME)
export NAME_ARRAY_LENGTH=${#NAME_ARRAY[@]}
export FIRST_NAME="Jedi"
export LAST_NAME="Master"
[[ $NAME_ARRAY_LENGTH -eq 2 ]] &&
export FIRST_NAME=${NAME_ARRAY[0]} &&
export LAST_NAME=${NAME_ARRAY[1]}
export NVM_AUTOLOAD=1
export BUN_INSTALL=$HOME/.bun
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export CARGO_HOME=$HOME/.cargo
export RUSTUP_HOME=$HOME/.rustup
export PYENV_ROOT=$HOME/.pyenv
# paths
export PATH=$BUN_INSTALL/bin:$PATH
export PATH=$CARGO_HOME/bin:$PATH
export PATH=$GOBIN:$PATH
export PATH=$PYENV_ROOT/bin:$PATH
export PATH=$PYENV_ROOT/shims:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/.composer/vendor/bin:$PATH
export PATH=$HOME/.jenv/bin:$PATH
export PATH=$HOME/.rbenv/bin:$PATH
export PATH=${KREW_ROOT:-$HOME/.krew}/bin:$PATH
export PATH=$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:$PATH
export PATH=$HOMEBREW_PREFIX/opt/curl/bin:$PATH
export PATH=$HOMEBREW_PREFIX/opt/openjdk/bin:$PATH
export PATH=$HOMEBREW_PREFIX/opt/postgresql@15/bin:$PATH