Skip to content

Instantly share code, notes, and snippets.

@eric-unc

eric-unc/.zshrc Secret

Created March 2, 2025 23:54
Show Gist options
  • Select an option

  • Save eric-unc/c7f728850ca998b7cd40b28f0240489c to your computer and use it in GitHub Desktop.

Select an option

Save eric-unc/c7f728850ca998b7cd40b28f0240489c to your computer and use it in GitHub Desktop.
PATH="/usr/local/opt/llvm@19/bin${PATH:+:${PATH}}"; export PATH;
#export LDFLAGS="-L/usr/local/opt/llvm@19/lib"
export LDFLAGS="-L/usr/local/opt/llvm@19/lib/c++ -L/usr/local/opt/llvm/lib/unwind -lunwind"
export CPPFLAGS="-I/usr/local/opt/llvm@19/include"
export CC="/usr/local/opt/llvm@19/bin/clang"
export CXX="/usr/local/opt/llvm@19/bin/clang++"
export LD="/usr/local/opt/lld/bin/lld" # todo: try ld64.lld
export CGO_CFLAGS="--target=x86_64-apple-darwin"
export CGO_CXXFLAGS="-stdlib=libc++"
#export CGO_LDFLAGS="-L/usr/local/opt/llvm@19/lib -Wl,-rpath,/usr/local/opt/llvm@19/lib"
export CGO_LDFLAGS="-stdlib=libc++ -lc++ -fuse-ld=lld"
export LIBRARY_PATH="/usr/local/opt/llvm@19/lib:$LIBRARY_PATH"
export CPATH="/usr/local/opt/llvm@19/include:$CPATH"
export PATH=/Library/PostgreSQL/14/bin:$PATH
export PGDATA=/Library/PostgreSQL/14/data
export PGDATABASE=postgres
export PGUSER=postgres
export PGPORT=5432
export PGLOCALEDIR=/Library/PostgreSQL/14/share/locale
export MANPATH=$MANPATH:/Library/PostgreSQL/14/share/man
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/Users/xbony2/.sdkman"
[[ -s "/Users/xbony2/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/xbony2/.sdkman/bin/sdkman-init.sh"
# for cmake
#export CC=clang
#CXX="/usr/local/opt/llvm@19/bin/clang"; export CXX;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment