-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsample.zprofile.txt
61 lines (53 loc) · 1.69 KB
/
sample.zprofile.txt
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
ARCH_NAME="$(uname -m)"
#----------------------------------
# HomeBrew
#----------------------------------
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${ARCH_NAME}" = "x86_64" ]; then
eval "$(/usr/local/bin/brew shellenv)"
if [ "$(sysctl -in sysctl.proc_translated)" = "1" ]; then
echo "Running on Rosetta 2"
else
echo "Running on native Intel"
fi
elif [ "${ARCH_NAME}" = "arm64" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
echo "Running on ${ARCH_NAME}"
else
echo "Unknown architecture: ${ARCH_NAME}"
fi
#----------------------------------
# Local path
#----------------------------------
export PATH=./:/usr/bin/:$PATH
#----------------------------------
# JAVA
#----------------------------------
export JAVA_HOME=$(/usr/libexec/java_home)
export EXT4J_JAVA_HOME=$JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
#----------------------------------
#VLC
#----------------------------------
export LD_LIBRARY_PATH=/usr/local/bin:/Applications/VLC.app/Contents/MacOS/lib
export PATH=$PATH:/Applications/VLC.app/Contents/MacOS/lib
#----------------------------------
# Android
# install sdk where ever is convenient
# in this example the sdk is in users Library
#----------------------------------
# developers solution
# export ANDROID_HOME=~/Library/Android/sdk
# export ANDROID_ADB=$ANDROID_HOME/platform-tools/
# export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
# non-developers configuration
export PATH=$PATH:~/platform-tools/
#----------------------------------
# wireshark
# dumpcap
# tshark
# capinfos
#----------------------------------
export PATH=$PATH:/Applications/Wireshark.app/Contents/MacOS