diff --git a/dot_zshrc b/dot_zshrc index 7d1ad5f..4a67aec 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -1,42 +1,21 @@ -# 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 - # Path to your oh-my-zsh installation. -export ZSH="$HOME/.oh-my-zsh" - -ZSH_THEME="powerlevel10k/powerlevel10k" - +export ZSH="$HOME/repos/ohmyzsh" +# znap [[ -f ~/repos/zsh-snap/znap.zsh ]] || git clone --depth 1 https://github.com/marlonrichert/zsh-snap.git ~/repos/zsh-snap source ~/repos/zsh-snap/znap.zsh -# Uncomment the following line to enable command auto-correction. -# ENABLE_CORRECTION="true" - -# Uncomment the following line to display red dots whilst waiting for completion. -# You can also set it to another string to have that shown instead of the default red dots. -# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f" -# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765) -# COMPLETION_WAITING_DOTS="true" - -# Uncomment the following line if you want to disable marking untracked files -# under VCS as dirty. This makes repository status check for large repositories -# much, much faster. -# DISABLE_UNTRACKED_FILES_DIRTY="true" - # OMZ znap source ohmyzsh/ohmyzsh lib/{git,theme-and-appearance} -znap prompt romkatv/powerlevel10k # Plugins znap source marlonrichert/zsh-autocomplete +zstyle ':autocomplete:*' min-input 1 + znap source zsh-users/zsh-autosuggestions +znap source zsh-users/zsh-completions # User configuration # aliases @@ -50,5 +29,5 @@ alias cat="bat" alias vim="nvim" alias vi="nvim" -# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. -[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh +# remember to install starship +eval "$(starship init zsh)"