diff --git a/zsh/.zsh_plugins.txt b/zsh/.zsh_plugins.txt new file mode 100644 index 0000000..64dc98c --- /dev/null +++ b/zsh/.zsh_plugins.txt @@ -0,0 +1,22 @@ +# Load OMZ plugins +ohmyzsh/ohmyzsh +ohmyzsh/ohmyzsh path:plugins/git +ohmyzsh/ohmyzsh path:plugins/golang +ohmyzsh/ohmyzsh path:plugins/ssh-agent +ohmyzsh/ohmyzsh path:plugins/pip +ohmyzsh/ohmyzsh path:plugins/python +ohmyzsh/ohmyzsh path:plugins/virtualenv +ohmyzsh/ohmyzsh path:plugins/python + + +romkatv/powerlevel10k +zsh-users/zsh-syntax-highlighting +zsh-users/zsh-autosuggestions +zsh-users/zsh-completions +zsh-users/zsh-history-substring-search +urbainvaes/fzf-marks +greymd/docker-zsh-completion +zdharma-continuum/fast-syntax-highlighting kind:defer + +# Initialize completions +belak/zsh-utils path:completion diff --git a/zsh/.zshrc b/zsh/.zshrc index bfe8be9..e8ac5b3 100644 --- a/zsh/.zshrc +++ b/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 '