mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-19 08:45:36 +00:00
add autocompletion
This commit is contained in:
parent
1ff498137e
commit
de787ae046
1 changed files with 4 additions and 3 deletions
7
.zshrc
7
.zshrc
|
@ -1,5 +1,7 @@
|
||||||
DISABLE_AUTO_UPDATE=true
|
DISABLE_AUTO_UPDATE=true
|
||||||
|
|
||||||
|
autoload -Uz compinit && compinit
|
||||||
|
|
||||||
iscmd() {
|
iscmd() {
|
||||||
command -v "$1" > /dev/null
|
command -v "$1" > /dev/null
|
||||||
}
|
}
|
||||||
|
@ -24,8 +26,6 @@ else
|
||||||
plugins="$HOME/.local/share/zsh-plugins"
|
plugins="$HOME/.local/share/zsh-plugins"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source "$plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
|
||||||
source "$plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
|
||||||
|
|
||||||
## History file configuration
|
## History file configuration
|
||||||
HISTFILE="$HOME/.zsh_history"
|
HISTFILE="$HOME/.zsh_history"
|
||||||
|
@ -75,5 +75,6 @@ if [ -d "$HOME/.zsh-custom" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DISABLE_MAGIC_FUNCTIONS=true
|
DISABLE_MAGIC_FUNCTIONS=true
|
||||||
# autoload -Uz compinit && compinit -i
|
|
||||||
source $OTHER/func.zsh
|
source $OTHER/func.zsh
|
||||||
|
source "$plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||||
|
source "$plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||||
|
|
Loading…
Add table
Reference in a new issue