56 lines
1.8 KiB
Bash
56 lines
1.8 KiB
Bash
setopt HIST_EXPIRE_DUPS_FIRST
|
|
setopt HIST_IGNORE_DUPS
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
setopt HIST_IGNORE_SPACE
|
|
setopt HIST_FIND_NO_DUPS
|
|
setopt HIST_SAVE_NO_DUPS
|
|
|
|
zstyle ':omz:plugins:keychain' agents gpg,ssh
|
|
zstyle ':omz:plugins:keychain' options --quiet
|
|
zstyle ':omz:plugins:ssh-agent' agent-forwarding yes
|
|
zstyle ':omz:plugins:ssh-agent' lazy yes
|
|
zstyle ':omz:plugins:ssh-agent' lifetime 8h
|
|
zstyle ':antidote:bundle' use-friendly-names 'yes'
|
|
|
|
CUSTOM_ZSH_DIR="$HOME/.config/zsh/custom"
|
|
[[ ! -d "$CUSTOM_ZSH_DIR" ]] && mkdir -p "$CUSTOM_ZSH_DIR"
|
|
[[ ! -r "$CUSTOM_ZSH_DIR/init.zsh" ]] && touch "$CUSTOM_ZSH_DIR/init.zsh"
|
|
|
|
# Clone antidote if necessary.
|
|
[[ -e "$HOME/.antidote" ]] || git clone https://github.com/mattmc3/antidote.git "$HOME/.antidote"
|
|
# Source antidote.
|
|
source "$HOME/.antidote/antidote.zsh"
|
|
source <(antidote init)
|
|
|
|
antidote bundle <<EOBUNDLES
|
|
getantidote/use-omz
|
|
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
|
|
svenXY/timewarrior
|
|
voronkovich/gitignore.plugin.zsh
|
|
zlsun/solarized-man
|
|
https://git.schmidl.dev/schtobia/zsh
|
|
$CUSTOM_ZSH_DIR/init.zsh
|
|
zsh-users/zsh-autosuggestions
|
|
zsh-users/zsh-completions
|
|
zsh-users/zsh-syntax-highlighting
|
|
ohmyzsh/ohmyzsh path:themes/gallifrey.zsh-theme
|
|
EOBUNDLES
|
|
|
|
source "$HOME/.local/bin/generate-env"
|
|
emulate sh -c '. ~/.profile'
|
|
|
|
chpwd() { exa }
|
|
ZSH_AUTOSUGGEST_STRATEGY=match_prev_cmd
|
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10'
|
|
bindkey '^ ' autosuggest-accept
|