From fc004cdf8bb0a2af4cf265f7b44ee87d0086c9d0 Mon Sep 17 00:00:00 2001 From: sadbeast Date: Fri, 16 Sep 2022 13:17:45 -0700 Subject: switch to antidote --- .zshrc | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/.zshrc b/.zshrc index 96c2bec..95995e2 100644 --- a/.zshrc +++ b/.zshrc @@ -1,4 +1,3 @@ -# antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh export PATH="$PATH:$HOME/bin:$HOME/projects/zig" autoload -Uz compinit @@ -11,6 +10,14 @@ fi zmodload -i zsh/complist +if ! [[ -e ${ZDOTDIR:-~}/.antidote ]]; then + git clone https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote +fi + +# source antidote and load plugins from `${ZDOTDIR:-~}/.zsh_plugins.txt` +source ${ZDOTDIR:-~}/.antidote/antidote.zsh +antidote load + HISTFILE=$HOME/.zsh_history HISTSIZE=100000 SAVEHIST=$HISTSIZE @@ -34,21 +41,8 @@ export NVM_LAZY_LOAD=true export FZF_DEFAULT_COMMAND='rg --files' export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_CTRL_T_OPTS="--preview 'bat --color=always --style=numbers --line-range=:500 {}'" -[ -f /usr/share/fzf/key-bindings.zsh ] && source /usr/share/fzf/key-bindings.zsh -[ -f /usr/share/fzf/completion.zsh ] && source /usr/share/fzf/completion.zsh - -export GPG_TTY=$(tty) - -export TERM=xterm-256color - -alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' - -[ -f $HOME/.zshrc.local ] && source $HOME/.zshrc.local -eval "$(starship init zsh)" - -source ~/.zsh_plugins.sh -# Base16 Tomorrow Night -# Author: Chris Kempson (http://chriskempson.com) +[ -f /usr/local/share/fzf/bash/key-bindings.zsh ] && source /usr/local/share/fzf/bash/key-bindings.zsh +[ -f /usr/local/share/fzf/bash/completion.zsh ] && source /usr/local/share/fzf/bash/completion.zsh _gen_fzf_default_opts() { @@ -80,6 +74,16 @@ _gen_fzf_default_opts source $HOME/.config/broot/launcher/bash/br -source /home/kentsmith/.config/broot/launcher/bash/br +export GPG_TTY=$(tty) + +export TERM=xterm-256color + +alias ls='colorls -GF' +alias l='ls -l' +alias la='ls -a' +alias lla='ls -la' -source /opt/asdf-vm/asdf.sh +alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME' + +[ -f $HOME/.zshrc.local ] && source $HOME/.zshrc.local +#eval "$(starship init zsh)" -- cgit v1.2.3