Alcune correzioni su zshrc.
This commit is contained in:
parent
63363f48bb
commit
c07a189fe5
34
.zshrc
34
.zshrc
@ -1,14 +1,36 @@
|
|||||||
# vim:sts=2:sw=2:ft=zsh
|
# vim:sts=2:sw=2:ft=zsh
|
||||||
|
|
||||||
# Autocompletion
|
# Base directories for dotfiles.
|
||||||
export FPATH=~/.dotfiles/zsh/functions:$FPATH
|
export DOTFILES=~/.dotfiles
|
||||||
|
|
||||||
# Theme
|
# Enables base completion
|
||||||
source ~/.dotfiles/zsh/themes/gentoo.zsh.theme
|
autoload -Uz compinit
|
||||||
|
compinit
|
||||||
|
|
||||||
|
# Autocompletion
|
||||||
|
export FPATH=$DOTFILES/zsh/functions:$FPATH
|
||||||
|
|
||||||
# zsh packages from system
|
# zsh packages from system
|
||||||
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
if uname -a | grep -qi 'debian'; then
|
||||||
source /usr/share/zsh-syntax-highlighting/zsh-syntax-hightlighting.zsh
|
# For Debian, it requires two packages
|
||||||
|
if [ -e /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
|
||||||
|
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
fi
|
||||||
|
if [ -e /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
||||||
|
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
# Theme
|
||||||
|
source $DOTFILES/zsh/themes/gentoo.zsh-theme
|
||||||
|
elif uname -a | grep -qi '\(arch\|manjaro\)'; then
|
||||||
|
# Archlinux or manjaro
|
||||||
|
if [ -e /usr/share/zsh/manjaro-zsh-config ]; then
|
||||||
|
source /usr/share/zsh/manjaro-zsh-config
|
||||||
|
fi
|
||||||
|
if [ -e /usr/share/zsh/manjaro-zsh-prompt ]; then
|
||||||
|
source /usr/share/zsh/manjaro-zsh-prompt
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
source ~/.dotfiles/zsh/plugins/*.plugin.zsh
|
source ~/.dotfiles/zsh/plugins/*.plugin.zsh
|
||||||
|
Loading…
Reference in New Issue
Block a user