obbyrussell/oh-my-zsh path:plugins/asdf kind:fpath
robbyrussell/oh-my-zsh path:plugins/git
robbyrussell/oh-my-zsh path:plugins/fzf
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
romkatv/powerlevel10k
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# don't nice background tasks
setopt NO_BG_NICE
setopt NO_HUP
#setopt NO_BEEP
# allow functions to have local options
setopt LOCAL_OPTIONS
# allow functions to have local traps
setopt LOCAL_TRAPS
# share history between sessions ???
setopt SHARE_HISTORY
# add timestamps to history
setopt EXTENDED_HISTORY
setopt PROMPT_SUBST
setopt CORRECT
setopt COMPLETE_IN_WORD
# adds history
setopt APPEND_HISTORY
# adds history incrementally and share it across sessions
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
# don't record dupes in history
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_REDUCE_BLANKS
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_VERIFY
setopt HIST_EXPIRE_DUPS_FIRST
# Alt arrow
bindkey "^[^[[D" backward-word
bindkey "^[^[[C" forward-word
# Load auto completion, rebuild cache once a day
autoload -Uz compinit
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then
compinit;
else
compinit -C;
fi;
# Oh My Zsh settings
DISABLE_AUTO_UPDATE=true # Antibody does this
CASE_SENSITIVE="false"
HYPHEN_INSENSITIVE="true"
#ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
# search history with fzf if installed, default otherwise
if test -d /usr/local/opt/fzf/shell; then
. /usr/local/opt/fzf/shell/key-bindings.zsh
else
bindkey '^R' history-incremental-search-backward
fi
alias ls='ls -G'
# Setup autosuggestions
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=214"
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
ZSH_AUTOSUGGEST_USE_ASYNC=true
# autoload -U +X bashcompinit && bashcompinit
# complete -o nospace -C /usr/local/bin/terraform terraform
export HOMEBREW_NO_AUTO_UPDATE=1
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
source ~/.zsh_plugins.sh
export FZF_DEFAULT_OPTS='--height 80% --layout=reverse --border'
. /opt/homebrew/opt/asdf/libexec/asdf.sh