Compare commits
1 Commits
f19bf41c63
...
d58e543c78
Author | SHA1 | Date | |
---|---|---|---|
d58e543c78 |
14
zshrc
14
zshrc
@ -2,10 +2,16 @@
|
|||||||
# executing commands, will be sourced when starting as an interactive shell.
|
# executing commands, will be sourced when starting as an interactive shell.
|
||||||
|
|
||||||
# Load plugin scripts
|
# Load plugin scripts
|
||||||
plugin-load() { source ~/.config/zsh/$1/$1.plugin.zsh }
|
source-plugin() {
|
||||||
plugin-load zsh-autosuggestions
|
if [ -d ~/.config/zsh/$1 ]; then
|
||||||
plugin-load zsh-history-substring-search
|
source ~/.config/zsh/$1/$1.plugin.zsh
|
||||||
plugin-load zsh-syntax-highlighting
|
else
|
||||||
|
echo "zsh plugin not found: $1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
source-plugin zsh-autosuggestions
|
||||||
|
source-plugin zsh-history-substring-search
|
||||||
|
source-plugin zsh-syntax-highlighting
|
||||||
|
|
||||||
# Disable non end-of-line autosuggest accept widgets
|
# Disable non end-of-line autosuggest accept widgets
|
||||||
ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=(end-of-line vi-end-of-line)
|
ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=(end-of-line vi-end-of-line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user