only source available zsh plugins
This commit is contained in:
parent
c937f338c1
commit
fa23d478cd
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Lines configured by zsh-newuser-install
|
# Lines configured by zsh-newuser-install
|
||||||
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
||||||
mkdir -p "$(dirname $HISTFILE)"
|
mkdir -p "$(dirname "$HISTFILE")"
|
||||||
HISTSIZE=100000
|
HISTSIZE=100000
|
||||||
SAVEHIST=100000
|
SAVEHIST=100000
|
||||||
setopt autocd
|
setopt autocd
|
||||||
@ -21,7 +21,7 @@ compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
|||||||
|
|
||||||
# for shell integration
|
# for shell integration
|
||||||
precmd() {
|
precmd() {
|
||||||
print -Pn "\e]133;A\e\\"
|
print -Pn "\e]133;A\e\\"
|
||||||
}
|
}
|
||||||
|
|
||||||
# prompt configuration
|
# prompt configuration
|
||||||
@ -51,8 +51,8 @@ alias xrm='sudo xbps-remove'
|
|||||||
|
|
||||||
# GPG setup (and SSH)
|
# GPG setup (and SSH)
|
||||||
if command -v keychain >/dev/null; then
|
if command -v keychain >/dev/null; then
|
||||||
alias keychain='keychain --dir "$XDG_RUNTIME_DIR" --absolute'
|
alias keychain="keychain --absolute --dir $XDG_RUNTIME_DIR"
|
||||||
eval `keychain --quiet --eval --agents gpg D7F966B85D985743C76A17AC5A9572AE7B2E7E1C`
|
eval "$(keychain --quiet --eval --agents gpg D7F966B85D985743C76A17AC5A9572AE7B2E7E1C)"
|
||||||
fi
|
fi
|
||||||
if command -v gpgconf >/dev/null; then
|
if command -v gpgconf >/dev/null; then
|
||||||
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
@ -61,6 +61,9 @@ fi
|
|||||||
### End user configuration
|
### End user configuration
|
||||||
|
|
||||||
### hooks/includes
|
### hooks/includes
|
||||||
. /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
for plugin in zsh-history-substring-search zsh-autosuggestions \
|
||||||
. /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
zsh-syntax-highlighting; do
|
||||||
. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
if [ -f /usr/share/zsh/plugins/$plugin/${plugin}.zsh ]; then
|
||||||
|
. /usr/share/zsh/plugins/$plugin/${plugin}.zsh
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user