source ~/.env # direnv eval "$(direnv hook zsh)" # rbenv eval "$(rbenv init -)" # nodenv if command -v nodenv &>/dev/null; then eval "$(nodenv init -)" fi # pyenv if command -v pyenv &>/dev/null; then export PYENV_ROOT="$HOME/.pyenv" [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" fi autoload -Uz compinit compinit # ZOxide, cd alternative eval "$(zoxide init --cmd cd zsh)" # atuin, shell command stats PATH="$HOME/.atuin/bin:$PATH" eval "$(atuin init zsh)" eval "$(atuin gen-completions --shell zsh)" if type brew &>/dev/null; then FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH export PATH="/usr/local/sbin:$PATH" fi # zsh-autosuggestions case `uname` in Darwin) [[ -f /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]] && source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh ;; Linux) [[ -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]] && source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ;; esac # heroku autocomplete setup HEROKU_AC_ZSH_SETUP_PATH=/Users/myockey/Library/Caches/heroku/autocomplete/zsh_setup && test -f $HEROKU_AC_ZSH_SETUP_PATH && source $HEROKU_AC_ZSH_SETUP_PATH typeset -U path cdpath fpath setopt auto_cd cdpath=($HOME/src) zstyle ':completion:*' group-name '' zstyle ':completion:*:descriptions' format %d export COMPLETION_WAITING_DOTS="true" export TERM="xterm-256color" export GPG_TTY=$(tty) export EDITOR="nvim" export GREP_COLOR="1;36" # Enable color support of ls if ls --color=auto &>/dev/null; then alias ls='ls -p --color=auto' else alias ls='ls -p -G' fi for file in $HOME/.functions/*.zsh; do source $file done source $HOME/.scripts/geometry/geometry.zsh case `uname` in Darwin) export PATH=/Users/myockey/.local/bin:$PATH export PATH=/Users/myockey/.opencode/bin:$PATH export PATH=/Users/myockey/go/bin:$PATH ;; Linux) export PATH=/home/myockey/.local/bin:$PATH export PATH=/home/myockey/.opencode/bin:$PATH export PATH=/home/myockey/go/bin:$PATH ;; esac . "$HOME/.atuin/bin/env" eval "$(atuin init zsh)" eval "$(atuin gen-completions --shell zsh)" # bun completions [ -s "/Users/myockey/.bun/_bun" ] && source "/Users/myockey/.bun/_bun" # bun export BUN_INSTALL="$HOME/.bun" export PATH="$BUN_INSTALL/bin:$PATH"