inital commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
_create_default() {
|
||||
cat <<< "# .zsh_plugins.txt
|
||||
zsh-users/zsh-syntax-highlighting
|
||||
zsh-users/zsh-autosuggestions
|
||||
zsh-users/zsh-history-substring-search
|
||||
|
||||
mattmc3/zephyr path:plugins/color
|
||||
mattmc3/zephyr path:plugins/helper
|
||||
getantidote/use-omz
|
||||
joshskidmore/zsh-fzf-history-search
|
||||
zsh-hooks/zsh-hooks
|
||||
" > ${1}
|
||||
|
||||
}
|
||||
|
||||
if [[ ! -d $HOME/.antidote ]]; then
|
||||
git clone --depth 1 https://github.com/mattmc3/antidote.git $HOME/.antidote
|
||||
fi
|
||||
|
||||
|
||||
# Set the root name of the plugins files (.txt and .zsh) antidote will use.
|
||||
zsh_plugins=${DOTFILES}/antidote/zsh_plugins
|
||||
|
||||
# Ensure the .zsh_plugins.txt file exists so you can add plugins.
|
||||
[[ -f ${zsh_plugins}.txt ]] || _create_default ${zsh_plugins}.txt
|
||||
|
||||
# Lazy-load antidote from its functions directory.
|
||||
fpath=($HOME/.antidote/functions $fpath)
|
||||
autoload -Uz antidote
|
||||
|
||||
zstyle ':antidote:bundle' use-friendly-names 'yes'
|
||||
zstyle ':antidote:static' file "${DOTFILES}/antidote/zsh_plugins"
|
||||
zstyle ':antidote:static' zcompile 'yes'
|
||||
if [[ ! ${zsh_plugins} -nt ${zsh_plugins}.txt ]]; then
|
||||
echo "${$(antidote bundle <${zsh_plugins}.txt)//source/call_file}" >|${zsh_plugins}
|
||||
#antidote bundle <${zsh_plugins}.txt >|${zsh_plugins}.compile
|
||||
fi
|
||||
call_file ${zsh_plugins} "antidote_plugin"
|
||||
ZSH=$(antidote path ohmyzsh/ohmyzsh)
|
||||
|
||||
Reference in New Issue
Block a user