mirror of https://github.com/qpixel/dotfiles.git
feat: change to starlight prompt
This commit is contained in:
parent
2c9e8fea73
commit
bc2e79cd59
35
dot_zshrc
35
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.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/repos/ohmyzsh"
|
||||||
|
|
||||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
||||||
|
|
||||||
|
|
||||||
|
# znap
|
||||||
[[ -f ~/repos/zsh-snap/znap.zsh ]] ||
|
[[ -f ~/repos/zsh-snap/znap.zsh ]] ||
|
||||||
git clone --depth 1 https://github.com/marlonrichert/zsh-snap.git ~/repos/zsh-snap
|
git clone --depth 1 https://github.com/marlonrichert/zsh-snap.git ~/repos/zsh-snap
|
||||||
|
|
||||||
source ~/repos/zsh-snap/znap.zsh
|
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
|
# OMZ
|
||||||
znap source ohmyzsh/ohmyzsh lib/{git,theme-and-appearance}
|
znap source ohmyzsh/ohmyzsh lib/{git,theme-and-appearance}
|
||||||
znap prompt romkatv/powerlevel10k
|
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
znap source marlonrichert/zsh-autocomplete
|
znap source marlonrichert/zsh-autocomplete
|
||||||
|
zstyle ':autocomplete:*' min-input 1
|
||||||
|
|
||||||
znap source zsh-users/zsh-autosuggestions
|
znap source zsh-users/zsh-autosuggestions
|
||||||
|
znap source zsh-users/zsh-completions
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
||||||
# aliases
|
# aliases
|
||||||
|
|
@ -50,5 +29,5 @@ alias cat="bat"
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
alias vi="nvim"
|
alias vi="nvim"
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# remember to install starship
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
eval "$(starship init zsh)"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue