dotfiles/.zshrc
2022-07-19 08:05:14 -05:00

57 lines
1.3 KiB
Bash

# vim:set ft=zsh ai et sw=4 ts=4:
#
# ~/.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"
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "amaya382/zsh-fzf-widgets"
zplug "chitoku-k/fzf-zsh-completions"
zplug "plugins/dnf", from:oh-my-zsh
zplug "plugins/colored-man-pages", 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
## lscolors
export LS_COLORS=$(cat ~/.lscolors.sh)
## Prompt
eval "$(starship init zsh)"