zsh: switched to antidote

This commit is contained in:
Tobias Schmidl 2025-10-22 14:04:36 +02:00 committed by Tobias Schmidl
parent 3323093db4
commit 36fc7d0eb4
5 changed files with 33 additions and 26 deletions

View file

@ -74,3 +74,5 @@
fsckobjects = true fsckobjects = true
[user] [user]
name = Tobias Schmidl name = Tobias Schmidl
[fetch "fsck"]
zeroPaddedFilemode = warn

4
.gitmodules vendored
View file

@ -4,7 +4,3 @@
[submodule ".vim/bundle/Vundle.vim"] [submodule ".vim/bundle/Vundle.vim"]
path = .vim/bundle/Vundle.vim path = .vim/bundle/Vundle.vim
url = https://github.com/VundleVim/Vundle.vim.git url = https://github.com/VundleVim/Vundle.vim.git
[submodule ".local/lib/zsh/antigen"]
path = .local/lib/zsh/antigen
url = https://github.com/zsh-users/antigen.git
branch = develop

@ -1 +0,0 @@
Subproject commit 64de2dcd95d6a8e879cd2244c763d99f0144e78e

52
.zshrc
View file

@ -5,37 +5,47 @@ setopt HIST_IGNORE_SPACE
setopt HIST_FIND_NO_DUPS setopt HIST_FIND_NO_DUPS
setopt HIST_SAVE_NO_DUPS setopt HIST_SAVE_NO_DUPS
zstyle :omz:plugins:keychain agents gpg,ssh zstyle ':omz:plugins:keychain' agents gpg,ssh
zstyle :omz:plugins:keychain options --quiet zstyle ':omz:plugins:keychain' options --quiet
zstyle :omz:plugins:ssh-agent agent-forwarding yes zstyle ':omz:plugins:ssh-agent' agent-forwarding yes
zstyle :omz:plugins:ssh-agent lazy yes zstyle ':omz:plugins:ssh-agent' lazy yes
zstyle :omz:plugins:ssh-agent lifetime 8h zstyle ':omz:plugins:ssh-agent' lifetime 8h
zstyle ':antidote:bundle' use-friendly-names 'yes'
source $HOME/.local/lib/zsh/antigen/bin/antigen.zsh CUSTOM_ZSH_DIR="$HOME/.config/zsh/custom"
antigen use oh-my-zsh [[ ! -d "$CUSTOM_ZSH_DIR" ]] && mkdir -p "$CUSTOM_ZSH_DIR"
antigen bundles <<EOBUNDLES [[ ! -r "$CUSTOM_ZSH_DIR/init.zsh" ]] && touch "$CUSTOM_ZSH_DIR/init.zsh"
command-not-found
common-aliases # Clone antidote if necessary.
debian [[ -e "$HOME/.antidote" ]] || git clone https://github.com/mattmc3/antidote.git "$HOME/.antidote"
direnv # Source antidote.
git source "$HOME/.antidote/antidote.zsh"
git-extras source <(antidote init)
gpg-agent
keychain antidote bundle <<EOBUNDLES
pip getantidote/use-omz
tmux ohmyzsh/ohmyzsh path:lib
ohmyzsh/ohmyzsh path:plugins/command-not-found
ohmyzsh/ohmyzsh path:plugins/common-aliases
ohmyzsh/ohmyzsh path:plugins/debian
ohmyzsh/ohmyzsh path:plugins/direnv
ohmyzsh/ohmyzsh path:plugins/git
ohmyzsh/ohmyzsh path:plugins/git-extras
ohmyzsh/ohmyzsh path:plugins/gpg-agent
ohmyzsh/ohmyzsh path:plugins/keychain
ohmyzsh/ohmyzsh path:plugins/pip
ohmyzsh/ohmyzsh path:plugins/tmux
MichaelAquilina/zsh-you-should-use MichaelAquilina/zsh-you-should-use
svenXY/timewarrior svenXY/timewarrior
voronkovich/gitignore.plugin.zsh voronkovich/gitignore.plugin.zsh
zlsun/solarized-man zlsun/solarized-man
https://git.schmidl.dev/schtobia/zsh https://git.schmidl.dev/schtobia/zsh
$HOME/.local/lib/zsh/custom-zsh $CUSTOM_ZSH_DIR/init.zsh
zsh-users/zsh-autosuggestions zsh-users/zsh-autosuggestions
zsh-users/zsh-completions zsh-users/zsh-completions
zsh-users/zsh-syntax-highlighting zsh-users/zsh-syntax-highlighting
ohmyzsh/ohmyzsh path:themes/gallifrey.zsh-theme
EOBUNDLES EOBUNDLES
antigen theme gallifrey
antigen apply
source "$HOME/.local/bin/generate-env" source "$HOME/.local/bin/generate-env"
emulate sh -c '. ~/.profile' emulate sh -c '. ~/.profile'