dotfiles/.zshrc

48 lines
1.3 KiB
Bash

if [ -d /usr/lib/systemd/system-environment-generators ];
then
run-parts /usr/lib/systemd/user-environment-generators | grep -v '#' | grep -v '^ $' | while read cur_env; do export ${cur_env}; done
else
cat $HOME/.config/environment.d/* | grep -v '#' | grep -v '^$' | while read cur_env; do export "${cur_env}"; done
fi
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:ssh-agent agent-forwarding yes
zstyle :omz:plugins:ssh-agent lazy yes
zstyle :omz:plugins:ssh-agent lifetime 8h
source $HOME/.local/lib/zsh/antigen/bin/antigen.zsh
antigen use oh-my-zsh
antigen bundles <<EOBUNDLES
git
git-extras
tmux
command-not-found
debian
gpg-agent
pip
ssh-agent
common-aliases
MichaelAquilina/zsh-you-should-use
svenXY/timewarrior
voronkovich/gitignore.plugin.zsh
zlsun/solarized-man
https://gitlab.com/schtobia/zsh
$HOME/.local/lib/zsh/custom-zsh
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
zsh-users/zsh-syntax-highlighting
EOBUNDLES
antigen theme gallifrey
antigen apply
hash direnv &> /dev/null && eval "$(direnv hook zsh)"
chpwd() { exa }
ZSH_AUTOSUGGEST_STRATEGY=match_prev_cmd
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10'
bindkey '^ ' autosuggest-accept