Add zsh-syntax-highlighting and zsh-autosuggestions
This commit is contained in:
parent
569bfe9c5b
commit
becfce36ff
1 changed files with 43 additions and 0 deletions
|
@ -14,3 +14,46 @@ Readline-like features themselves.
|
|||
alias csi="rlwrap csi"
|
||||
alias scsh="rlwrap scsh"
|
||||
#+END_SRC
|
||||
|
||||
Load zplug, a next generation zsh plugin manager.
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
source /usr/share/zsh/scripts/zplug/init.zsh
|
||||
#+END_SRC
|
||||
|
||||
Add zsh-syntax-highlighting.
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
zplug "zsh-users/zsh-syntax-highlighting", nice:10
|
||||
#+END_SRC
|
||||
|
||||
Add zsh-autosuggestions.
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
zplug "zsh-users/zsh-autosuggestions"
|
||||
#+END_SRC
|
||||
|
||||
Make sure all plugins are installed.
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
if ! zplug check --verbose; then
|
||||
printf "Install? [y/N]: "
|
||||
if read -q; then
|
||||
echo; zplug install
|
||||
fi
|
||||
fi
|
||||
#+END_SRC
|
||||
|
||||
Load all plugins.
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
zplug load --verbose
|
||||
#+END_SRC
|
||||
|
||||
Initialize completion. This triggers loading of
|
||||
zsh-syntax-highlighting as well.
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
#+END_SRC
|
||||
|
|
Loading…
Reference in a new issue