2022-07-17 04:25:55 +02:00
|
|
|
# ~/.zshrc
|
|
|
|
|
|
|
|
## Plugins
|
|
|
|
if ! test -f ~/.zplug/init.zsh; then
|
|
|
|
export ZPLUG_HOME=~/.zplug
|
|
|
|
git clone https://github.com/zplug/zplug $ZPLUG_HOME
|
|
|
|
fi
|
|
|
|
|
|
|
|
source ~/.zplug/init.zsh
|
|
|
|
|
|
|
|
zplug "~/.zshrc.d", from:local, use:'(*).zsh'
|
|
|
|
zplug "zsh-users/zsh-autosuggestions"
|
|
|
|
zplug "zsh-users/zsh-history-substring-search"
|
2022-07-19 15:04:00 +02:00
|
|
|
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
2022-07-17 04:25:55 +02:00
|
|
|
zplug "amaya382/zsh-fzf-widgets"
|
|
|
|
zplug "chitoku-k/fzf-zsh-completions"
|
|
|
|
zplug "plugins/dnf", from:oh-my-zsh
|
|
|
|
zplug "plugins/extract", from:oh-my-zsh
|
|
|
|
zplug "plugins/firewalld", from:oh-my-zsh
|
|
|
|
zplug "plugins/git", from:oh-my-zsh
|
|
|
|
zplug "plugins/sudo", from:oh-my-zsh
|
|
|
|
zplug "plugins/systemd", from:oh-my-zsh
|
|
|
|
zplug "urbainvaes/fzf-marks"
|
|
|
|
|
|
|
|
if ! zplug check; then
|
|
|
|
zplug install;
|
|
|
|
exec $SHELL $SHELL_ARGS "$@"
|
|
|
|
fi
|
|
|
|
|
|
|
|
zplug load
|
|
|
|
|
|
|
|
## General shell options
|
|
|
|
# See https://zsh-manual.netlify.app/options
|
|
|
|
setopt appendhistory
|
|
|
|
setopt autocd
|
|
|
|
setopt autolist
|
|
|
|
setopt automenu
|
|
|
|
setopt autoremoveslash
|
|
|
|
setopt cdablevars
|
|
|
|
setopt histallowclobber
|
|
|
|
setopt histignorealldups
|
|
|
|
setopt histignoredups
|
|
|
|
setopt histsavenodups
|
|
|
|
setopt interactivecomments
|
|
|
|
setopt listpacked
|
|
|
|
setopt listtypes
|
|
|
|
setopt longlistjobs
|
|
|
|
|
2022-07-19 15:04:00 +02:00
|
|
|
## lscolors
|
|
|
|
export LS_COLORS=$(cat ~/.lscolors.sh)
|
|
|
|
|
2022-07-17 04:25:55 +02:00
|
|
|
## Prompt
|
|
|
|
eval "$(starship init zsh)"
|
2022-08-12 14:52:48 +02:00
|
|
|
|
|
|
|
# vim:set ft=zsh ai et sw=4 ts=4:
|