Files
dotfiles/zsh/.zshrc
Tobias Maier e11f86ac39 Improved folder structure
renamed:    .p10k.zsh -> zsh/.p10k.zsh
	renamed:    .zshrc -> zsh/.zshrc
2022-08-14 14:11:17 +02:00

58 lines
1.9 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 /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/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
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