55 lines
1.6 KiB
Bash
55 lines
1.6 KiB
Bash
# first, run this from an interactive zsh terminal session:
|
|
if [[ ! -d "${ZDOTDIR}/.antidote" ]]; then
|
|
mkdir -p "${ZDOTDIR}/.antidote" && chmod 700 "${ZDOTDIR}/.antidote"
|
|
git clone --depth=1 https://github.com/mattmc3/antidote.git "${ZDOTDIR}/.antidote"
|
|
fi
|
|
|
|
zsh_plugins=${ZDOTDIR}/.zsh_plugins
|
|
[[ -f ${zsh_plugins}.txt ]] || touch ${zsh_plugins}.txt
|
|
|
|
# source antidote
|
|
source ${ZDOTDIR}/.antidote/antidote.zsh
|
|
|
|
# Eza plugin options
|
|
zstyle ':omz:plugins:eza' dirs-first yes
|
|
zstyle ':omz:plugins:eza' git-status yes
|
|
zstyle ':omz:plugins:eza' header yes
|
|
zstyle ':omz:plugins:eza' show-group yes
|
|
zstyle ':omz:plugins:eza' icons yes
|
|
zstyle ':omz:plugins:eza' color-scale all
|
|
zstyle ':omz:plugins:eza' color-scale-mode fixed
|
|
zstyle ':omz:plugins:eza' size-prefix si
|
|
# Note: 'hyperlink' is omitted as per your comment
|
|
|
|
# Completion settings
|
|
zstyle ':completion:*' menu select
|
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
|
zstyle ':completion:*' special-dirs true
|
|
|
|
|
|
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
|
|
# Ensure directories exist
|
|
mkdir -p "$XDG_CACHE_HOME/zsh"
|
|
|
|
export HISTFILE="$XDG_CACHE_HOME/zsh/history"
|
|
export ZSH_COMPDUMP="$XDG_CACHE_HOME/zsh/zcompdump-${HOST}-${ZSH_VERSION}"
|
|
export HISTSIZE=10000
|
|
export SAVEHIST=10000
|
|
|
|
setopt SHARE_HISTORY
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
setopt HIST_REDUCE_BLANKS
|
|
setopt HIST_FCNTL_LOCK
|
|
setopt AUTO_CD
|
|
setopt AUTO_LIST
|
|
setopt INTERACTIVE_COMMENTS
|
|
setopt HIST_VERIFY
|
|
setopt EXTENDED_HISTORY
|
|
setopt AUTO_PUSHD
|
|
setopt PUSHD_IGNORE_DUPS
|
|
setopt PUSHD_SILENT
|
|
|
|
# initialize plugins statically with ${ZDOTDIR:-$HOME}/.zsh_plugins.txt
|
|
antidote load
|