Skip to content

Commit 07996bc

Browse files
authored
Add files via upload
1 parent cce3073 commit 07996bc

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

sample.zprofile.txt

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
ARCH_NAME="$(uname -m)"
2+
3+
#----------------------------------
4+
# HomeBrew
5+
#----------------------------------
6+
if [ -x /usr/libexec/path_helper ]; then
7+
eval `/usr/libexec/path_helper -s`
8+
fi
9+
10+
if [ "${ARCH_NAME}" = "x86_64" ]; then
11+
eval "$(/usr/local/bin/brew shellenv)"
12+
if [ "$(sysctl -in sysctl.proc_translated)" = "1" ]; then
13+
echo "Running on Rosetta 2"
14+
else
15+
echo "Running on native Intel"
16+
fi
17+
elif [ "${ARCH_NAME}" = "arm64" ]; then
18+
eval "$(/opt/homebrew/bin/brew shellenv)"
19+
echo "Running on ${ARCH_NAME}"
20+
else
21+
echo "Unknown architecture: ${ARCH_NAME}"
22+
fi
23+
24+
#----------------------------------
25+
# Local path
26+
#----------------------------------
27+
export PATH=./:/usr/bin/:$PATH
28+
29+
#----------------------------------
30+
# JAVA
31+
#----------------------------------
32+
export JAVA_HOME=$(/usr/libexec/java_home)
33+
export EXT4J_JAVA_HOME=$JAVA_HOME
34+
export PATH=$JAVA_HOME/bin:$PATH
35+
36+
#----------------------------------
37+
#VLC
38+
#----------------------------------
39+
export LD_LIBRARY_PATH=/usr/local/bin:/Applications/VLC.app/Contents/MacOS/lib
40+
export PATH=$PATH:/Applications/VLC.app/Contents/MacOS/lib
41+
42+
#----------------------------------
43+
# Android
44+
# install sdk where ever is convenient
45+
# in this example the sdk is in users Library
46+
#----------------------------------
47+
# developers solution
48+
# export ANDROID_HOME=~/Library/Android/sdk
49+
# export ANDROID_ADB=$ANDROID_HOME/platform-tools/
50+
# export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
51+
52+
# non-developers configuration
53+
export PATH=$PATH:~/platform-tools/
54+
55+
#----------------------------------
56+
# wireshark
57+
# dumpcap
58+
# tshark
59+
# capinfos
60+
#----------------------------------
61+
export PATH=$PATH:/Applications/Wireshark.app/Contents/MacOS

0 commit comments

Comments
 (0)