Switch to zplug
This commit is contained in:
12
zsh/.zshrc
12
zsh/.zshrc
@ -1,14 +1,16 @@
|
|||||||
# set -xv
|
# set -xv
|
||||||
|
|
||||||
# source ~/fig_prompt
|
|
||||||
if [ -f ${HOME}/.zplug/init.zsh ]; then
|
if [ -f ${HOME}/.zplug/init.zsh ]; then
|
||||||
source ${HOME}/.zplug/init.zsh
|
source ${HOME}/.zplug/init.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
||||||
zplug "mafredri/zsh-async", from:"github", use:"async.zsh"
|
zplug "mafredri/zsh-async", from:"github", use:"async.zsh"
|
||||||
|
zplug "zsh-users/zsh-autosuggestions"
|
||||||
|
zplug romkatv/powerlevel10k, as:theme, depth:1
|
||||||
|
|
||||||
zplug load
|
zplug load
|
||||||
|
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
@ -16,8 +18,8 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
|||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
# [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
plugins=(zsh-autosuggestions zsh-syntax-highlighting)
|
# plugins=(zsh-autosuggestions zsh-syntax-highlighting)
|
||||||
|
|
||||||
ZSH_THEME=powerlevel10k/powerlevel10k
|
ZSH_THEME=powerlevel10k/powerlevel10k
|
||||||
DISABLE_AUTO_TITLE=true
|
DISABLE_AUTO_TITLE=true
|
||||||
@ -236,5 +238,3 @@ autoload -Uz add-zsh-hook
|
|||||||
export FZF_DEFAULT_OPTS="--preview 'echo {}' --preview-window down:3:wrap --bind ?:toggle-preview"
|
export FZF_DEFAULT_OPTS="--preview 'echo {}' --preview-window down:3:wrap --bind ?:toggle-preview"
|
||||||
|
|
||||||
source ~/.bash_profile
|
source ~/.bash_profile
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
Reference in New Issue
Block a user