86 lines
1.9 KiB
Plaintext
86 lines
1.9 KiB
Plaintext
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
|
|
|
|
# ZOxide, cd alternative
|
|
eval "$(zoxide init --cmd cd zsh)"
|
|
|
|
# atuin, shell command stats
|
|
PATH="$HOME/.atuin/bin:$PATH"
|
|
eval "$(atuin init zsh)"
|
|
|
|
if type brew &>/dev/null; then
|
|
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
|
|
export PATH="/usr/local/sbin:$PATH"
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
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
|
|
Linux)
|
|
export PATH=/home/myockey/.local/bin:$PATH
|
|
;;
|
|
esac
|
|
|
|
. "$HOME/.atuin/bin/env"
|
|
|
|
eval "$(atuin init zsh)"
|
|
eval "$(atuin gen-completions --shell zsh)"
|
|
|
|
# opencode
|
|
export PATH=/home/myockey/.opencode/bin:$PATH
|