refactor code and add fallback prompt to zsh
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
## Plugins configuration
|
||||
|
||||
# Automatic suggestions
|
||||
. "${HOME}/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||
|
||||
# Completions
|
||||
fpath=("${HOME}/.zsh/plugins/zsh-completions/src" "${fpath[@]}")
|
||||
autoload -U compinit promptinit
|
||||
compinit
|
||||
promptinit
|
||||
[[ -f "/etc/gentoo-release" ]] && prompt gentoo
|
||||
[[ -f /etc/gentoo-release ]] && prompt gentoo
|
||||
|
||||
# Enable cache for completions
|
||||
zstyle ":completion::complete:*" use-cache 1
|
||||
|
||||
# Syntax highlighting in zsh prompt
|
||||
source "${HOME}/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
. "${HOME}/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
|
||||
Reference in New Issue
Block a user