Fix antidote config
This commit is contained in:
15
zsh/.zshrc
15
zsh/.zshrc
@@ -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 '
|
||||
|
||||
Reference in New Issue
Block a user