Added zsh
This commit is contained in:
20
private_dot_config/zsh/plugins.zsh
Normal file
20
private_dot_config/zsh/plugins.zsh
Normal file
@ -0,0 +1,20 @@
|
||||
# Zinit package manager
|
||||
# https://github.com/zdharma-continuum/zinit
|
||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
|
||||
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||
source "${ZINIT_HOME}/zinit.zsh"
|
||||
|
||||
# Syntax highlighting
|
||||
zinit ice depth=1; zinit light "zsh-users/zsh-syntax-highlighting"
|
||||
|
||||
# Command completions
|
||||
zinit ice depth=1; zinit light "zsh-users/zsh-completions"
|
||||
|
||||
# History autosuggestions
|
||||
zinit ice depth=1; zinit light "zsh-users/zsh-autosuggestions"
|
||||
|
||||
# Use fzf for completion
|
||||
zinit ice depth=1; zinit light "Aloxaf/fzf-tab"
|
||||
zstyle ":fzf-tab:complete:cd:*" fzf-preview "ls --color $realpath"
|
||||
zstyle ":completion:*" menu no
|
Reference in New Issue
Block a user