rewrite zshrc to use antidote
This commit is contained in:
parent
bbad123631
commit
5f5cc039d9
4 changed files with 20 additions and 2068 deletions
|
@ -1,2 +1,3 @@
|
|||
export PATH="$HOME/.yarn/bin:$PATH"
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
. "$HOME/.cargo/env"
|
||||
|
|
2057
zsh/.zsh/antigen.zsh
2057
zsh/.zsh/antigen.zsh
File diff suppressed because it is too large
Load diff
4
zsh/.zsh_plugins.txt
Normal file
4
zsh/.zsh_plugins.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
sindresorhus/pure
|
||||
lukechilds/zsh-nvm
|
||||
zsh-users/zsh-autosuggestions
|
||||
zsh-users/zsh-syntax-highlighting
|
26
zsh/.zshrc
26
zsh/.zshrc
|
@ -7,9 +7,11 @@ unsetopt beep
|
|||
bindkey -e
|
||||
# End of lines configured by zsh-newuser-install
|
||||
# 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
|
||||
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
autoload -Uz vcs_info
|
||||
|
@ -20,17 +22,19 @@ zstyle ':vcs_info:git:*' formats '%b '
|
|||
setopt PROMPT_SUBST
|
||||
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
|
||||
alias ls="ls --color=auto"
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue