Improved folder structure
renamed: .p10k.zsh -> zsh/.p10k.zsh renamed: .zshrc -> zsh/.zshrc
This commit is contained in:
1634
zsh/.p10k.zsh
Normal file
1634
zsh/.p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
58
zsh/.zshrc
Normal file
58
zsh/.zshrc
Normal file
@@ -0,0 +1,58 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user