rewrite zshrc to use antidote

This commit is contained in:
Anthony Rodriguez 2023-06-02 13:14:36 +02:00
parent bbad123631
commit 5f5cc039d9
No known key found for this signature in database
GPG key ID: 838541960B42C340
4 changed files with 20 additions and 2068 deletions

View file

@ -1,2 +1,3 @@
export PATH="$HOME/.yarn/bin:$PATH" export PATH="$HOME/.yarn/bin:$PATH"
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
. "$HOME/.cargo/env"

File diff suppressed because it is too large Load diff

4
zsh/.zsh_plugins.txt Normal file
View file

@ -0,0 +1,4 @@
sindresorhus/pure
lukechilds/zsh-nvm
zsh-users/zsh-autosuggestions
zsh-users/zsh-syntax-highlighting

View file

@ -7,9 +7,11 @@ unsetopt beep
bindkey -e bindkey -e
# End of lines configured by zsh-newuser-install # End of lines configured by zsh-newuser-install
# The following lines were added by compinstall # The following lines were added by compinstall
zstyle :compinstall filename '/home/tony/.zshrc' zstyle :compinstall filename '/home/nezia/.zshrc'
autoload -U promptinit; promptinit
autoload -Uz compinit autoload -Uz compinit
compinit compinit
# End of lines added by compinstall # End of lines added by compinstall
autoload -Uz vcs_info autoload -Uz vcs_info
@ -20,17 +22,19 @@ zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST setopt PROMPT_SUBST
PROMPT='%F{green}%n%f@%F{green}%m%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ ' PROMPT='%F{green}%n%f@%F{green}%m%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '
source ~/.zsh/antigen.zsh
source ~/.zsh/catppuccin_mocha-zsh-syntax-highlighting.zsh
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen apply
# aliases # aliases
alias ls="ls --color=auto" alias ls="ls --color=auto"
alias ll="ls -al" alias ll="ls -al"
# Set up Node Version Manager
source /usr/share/nvm/init-nvm.sh # Lazy-load antidote and generate the static load file only when needed
zsh_plugins=${ZDOTDIR:-$HOME}/.zsh_plugins
if [[ ! ${zsh_plugins}.zsh -nt ${zsh_plugins}.txt ]]; then
(
source $HOME/.antidote/antidote.zsh
antidote bundle <${zsh_plugins}.txt >${zsh_plugins}.zsh
)
fi
source ${zsh_plugins}.zsh
eval $(keychain --eval --quiet id_ed25519)