setopt extendedglob export ZSH="$HOME/.oh-my-zsh" export EDITOR="vim" export CFLAGS="-march=native -O2" export CXXFLAGS="$CFLAGS" export MAKEOPTS="-j$(cat /proc/cpuinfo | awk -F: '$1 ~ /cpu cores/ { print $2 }' | head -n 1 | tr -d ' ')" if [ -n "$(command -v clang)" ]; then export CC=clang else export CC=gcc fi if [ -n "$(command -v clang++)" ]; then export CXX=clang++ else export CXX=g++ fi if [ -n "$(command -v ruby)" ] && [ -n "$(command -v gem)" ]; then PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH" fi [[ ! -r $HOME/.cargo/env ]] || source $HOME/.cargo/env > /dev/null 2> /dev/null # pnpm export PNPM_HOME="$HOME/.local/share/pnpm" case ":$PATH:" in *":$PNPM_HOME:"*) ;; *) export PATH="$PNPM_HOME:$PATH" ;; esac # pnpm end source $ZSH/oh-my-zsh.sh source ~/.zplug/init.zsh source ~/.zcustom/init.zsh eval "$(zoxide init zsh)"