Files
dotfiles/zsh/.zshrc

63 lines
2.0 KiB
Bash

# 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
export PATH=/home/tobi/.cargo/bin:$PATH
source /home/tobi/.config/zsh_addons/powerlevel10k/powerlevel10k.zsh-theme
source /home/tobi/.config/zsh_addons/zsh-autosuggestions/zsh-autosuggestions.zsh
source /home/tobi/.config/zsh_addons/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-sudo/sudo.plugin.zsh
HISTFILE=~/.zsh_history
HISTSIZE=2500
SAVEHIST=5000
setopt autocd
unsetopt beep extendedglob nomatch
bindkey -v
zstyle :compinstall filename '/home/tobi/.zshrc'
#autoload -Uz compinit
#compinit
autoload -Uz compinit promptinit
compinit
promptinit; prompt gentoo
zstyle ':completion:*' completer _extensions _complete _approximate
zstyle ":completion:*:default" list-colors ${(s.:.)LS_COLORS} "ma=48;5;166;1"
zstyle ':completion:*' menu select
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/.zcompcache"
zstyle ':completion:*:*:*:*:descriptions' format '%F{green}-- %d --%f'
zstyle ':completion:*:*:*:*:corrections' format '%F{yellow}!- %d (errors: %e) -!%f'
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' file-sort access
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
alias ls="exa --icons"
alias l="exa -lah --icons"
alias tp="terraform plan"
alias tiu="terraform init -upgrade"
alias ti="terraform init"
alias p="python"
alias y="z"
alias yi="zi"
alias cd="z"
alias vim="nvim"
alias e="nvim"
eval "$(zoxide init zsh)"
bindkey '^[[A' up-line-or-search
bindkey '^[[B' down-line-or-search