Fix antidote config

This commit is contained in:
Fabian Ising
2022-09-06 13:25:54 +02:00
parent 9352ac948e
commit b2b8d42d70
2 changed files with 31 additions and 6 deletions

View File

@@ -12,11 +12,9 @@ export PATH="$HOME/.local/bin:$PATH"
[[ -f /usr/share/doc/find-the-command/ftc.zsh ]] && source /usr/share/doc/find-the-command/ftc.zsh
[[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config
setopt interactivecomments
setopt HIST_IGNORE_SPACE
# Clear screen by ctrl+q
bindkey '^q' clear-screen
# Load Antigen
# Load Antidote
static_file=${ZDOTDIR:-~}/.cache/.zsh_plugins.zsh
plugins_txt=${ZDOTDIR:-~}/.zsh/.zsh_plugins.txt
# clone antidote if necessary
if ! [[ -e ${ZDOTDIR:-~}/.antidote ]]; then
git clone https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
@@ -24,7 +22,12 @@ fi
# source antidote and load plugins from `${ZDOTDIR:-~}/.zsh_plugins.txt`
source ${ZDOTDIR:-~}/.antidote/antidote.zsh
antidote load
antidote load ${plugins_txt} ${static_file}
setopt interactivecomments
setopt HIST_IGNORE_SPACE
# Clear screen by ctrl+q
bindkey '^q' clear-screen
alias vim=nvim
alias sudo='sudo '