1
0
Files
dotfiles/.zshrc
2025-01-10 19:22:58 -03:00

69 lines
1.8 KiB
Bash

ZSH_THEME=""
export ZSH="$HOME/.oh-my-zsh"
source "$HOME/.config/zsh/utilities.sh"
# Path
_path_add "$HOME/.local/bin"
_path_add "$HOME/.local/go/bin"
# Initializing plugins
plugins=(
git
zoxide
fast-syntax-highlighting
zsh-autocomplete
zsh-syntax-highlighting
zsh-autosuggestions
fzf-tab
aws
autoupdate
virtualenv
)
# Completion setup
source $ZSH/oh-my-zsh.sh
autoload -Uz compinit
compinit -i -u
eval "$(zoxide init zsh --cmd cd)"
zstyle ':completion:*' completer _extensions _expand _expand_alias _complete _approximate _correct _ignored
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/.zcompcache"
zstyle ':completion:*' menu select
source <(kubectl completion zsh)
# FZF Setup
export FZF_DEFAULT_OPTS="--cycle --no-sort --reverse --border=rounded --header-first --prompt='󰍉 ' --pointer='' --marker='󰆤 '"
bindkey '\t' menu-select "$terminfo[kcbt]" menu-select
bindkey -M menuselect '\t' menu-complete "$terminfo[kcbt]" reverse-menu-complete
# Initialize toolbox env
source "$HOME/.config/zsh/toolbox.sh"
container=${container:-""}
if [ "$container" = "oci" ]; then
_toolbox_entrypoint
else
alias docker="podman"
export GOPATH="$HOME/.local/"
fi
# Pure theme setup
fpath+=($HOME/.zsh/pure)
autoload -U promptinit; promptinit
zstyle :prompt:pure:path color '#eeeeee'
zstyle :prompt:pure:git:branch color '#ffe599'
zstyle :prompt:pure:prompt:success color '#8fce00'
zstyle :prompt:pure:prompt:error color '#f44336'
prompt pure
# https://github.com/sindresorhus/pure/issues/545#issuecomment-706630230
export CONDA_DEFAULT_ENV=""
# Load cargo
. "$HOME/.cargo/env"
source "$HOME/.config/zsh/aliases.sh"
source "$HOME/.config/zsh/aws.sh"