2021-12-29 19:14:18 +01:00
|
|
|
# vim:sts=2:sw=2:ft=zsh
|
|
|
|
|
2021-12-30 00:18:22 +01:00
|
|
|
# Base directories for dotfiles.
|
2023-04-29 15:32:22 +02:00
|
|
|
export DOTFILES=${HOME}/.dotfiles
|
2023-12-29 18:13:16 +01:00
|
|
|
|
|
|
|
# Autocompletions
|
2023-12-29 18:42:39 +01:00
|
|
|
export FPATH=${HOME}/.zsh/functions:${DOTFILES}/zsh/functions:${FPATH}
|
2021-12-30 00:18:22 +01:00
|
|
|
|
2021-12-30 01:15:29 +01:00
|
|
|
# Base autoloading
|
2022-01-01 01:03:34 +01:00
|
|
|
autoload -Uz compaudit compinit
|
2021-12-30 01:15:29 +01:00
|
|
|
compinit
|
2024-01-28 21:30:04 +01:00
|
|
|
# Autoload bash completions
|
|
|
|
autoload -U +X bashcompinit
|
|
|
|
bashcompinit
|
2021-12-30 01:15:29 +01:00
|
|
|
|
2021-12-29 19:14:18 +01:00
|
|
|
# zsh packages from system
|
2023-12-30 15:10:01 +01:00
|
|
|
if [[ -f ${DOTFILES}/zsh/distro.base.zsh ]]; then
|
|
|
|
source ${DOTFILES}/zsh/distro.base.zsh
|
|
|
|
fi
|
2021-12-29 19:14:18 +01:00
|
|
|
|
2024-09-28 23:22:56 +02:00
|
|
|
# Loading antidote
|
|
|
|
if [[ -f /usr/share/zsh-antidote/antidote.zsh ]]; then
|
|
|
|
source /usr/share/zsh-antidote/antidote.zsh
|
2023-12-30 15:10:01 +01:00
|
|
|
fi
|
2024-10-01 00:17:58 +02:00
|
|
|
if [[ -f ${HOME}/.zsh/antidote/antidote.zsh ]]; then
|
|
|
|
source ${HOME}/.zsh/antidote/antidote.zsh
|
|
|
|
fi
|
2023-12-29 17:50:43 +01:00
|
|
|
|
2023-12-29 18:59:33 +01:00
|
|
|
# configuring fzf plugin for tmux
|
2023-05-01 01:42:17 +02:00
|
|
|
export ZSH_TMUX_CONFIG=${HOME}/.config/tmux/tmux.conf
|
2021-12-29 19:14:18 +01:00
|
|
|
|
|
|
|
# FZF default options
|
2022-01-01 01:03:34 +01:00
|
|
|
[ -x `which fzf 2>/dev/null` ] && export FZF_DEFAULT_OPTS="--multi --no-mouse --ansi --color=dark"
|
2021-12-29 19:14:18 +01:00
|
|
|
|
2023-12-29 18:59:33 +01:00
|
|
|
# Other plugins
|
|
|
|
for plugin in `find $DOTFILES/zsh/plugins -iname \*.plugin.zsh -print`; do
|
|
|
|
if [ -f /etc/redhat-release ]; then
|
|
|
|
if [ "$(basename ${plugin})" != 'fzf.plugin.zsh' ]; then
|
|
|
|
source $plugin
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
source $plugin
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# EDITOR
|
|
|
|
export EDITOR="/usr/bin/vim"
|
|
|
|
|
2021-12-29 19:14:18 +01:00
|
|
|
# Loading additional aliases
|
2023-06-29 22:00:57 +02:00
|
|
|
for file in `find $DOTFILES/zsh/aliases -iname \*.aliases.zsh -print`; do
|
2021-12-30 01:22:40 +01:00
|
|
|
source $file
|
2021-12-30 01:21:38 +01:00
|
|
|
done
|
2023-12-29 17:50:43 +01:00
|
|
|
|
2023-12-29 18:23:31 +01:00
|
|
|
if [[ -d $HOME/.zsh/conf.d ]]; then
|
2023-12-29 18:48:39 +01:00
|
|
|
for file in $HOME/.zsh/conf.d/*.zsh; do
|
|
|
|
source $file
|
2023-12-29 18:23:31 +01:00
|
|
|
done
|
|
|
|
fi
|
2024-10-07 20:48:09 +02:00
|
|
|
|
|
|
|
if [[ -f ${HOME}/.p10k.zsh ]]; then
|
|
|
|
source ${HOME}/.p10k.zsh
|
|
|
|
fi
|