Correzioni a zshrc.

This commit is contained in:
Emiliano Vavassori 2023-12-29 18:13:16 +01:00
parent 4c7528f5cb
commit 02d62ba1b2

11
zshrc
View File

@ -2,7 +2,8 @@
# Base directories for dotfiles. # Base directories for dotfiles.
export DOTFILES=${HOME}/.dotfiles export DOTFILES=${HOME}/.dotfiles
# Autocompletion
# Autocompletions
export FPATH=${DOTFILES}/zsh/functions:${FPATH} export FPATH=${DOTFILES}/zsh/functions:${FPATH}
# Base autoloading # Base autoloading
@ -29,6 +30,7 @@ antigen bundle <<BUNDLES
command-not-found command-not-found
common-aliases common-aliases
copyfile copyfile
fd
fzf fzf
git git
pip pip
@ -48,6 +50,11 @@ export ZSH_TMUX_CONFIG=${HOME}/.config/tmux/tmux.conf
# FZF default options # FZF default options
[ -x `which fzf 2>/dev/null` ] && export FZF_DEFAULT_OPTS="--multi --no-mouse --ansi --color=dark" [ -x `which fzf 2>/dev/null` ] && export FZF_DEFAULT_OPTS="--multi --no-mouse --ansi --color=dark"
# Use Powerlevel10k if already found
if [[ -f ~/.p10k.zsh ]]; then
source ~/.p10k.zsh
fi
# Loading rvm if exists # Loading rvm if exists
[ -f /etc/profile.d/rvm.sh ] && source /etc/profile.d/rvm.sh [ -f /etc/profile.d/rvm.sh ] && source /etc/profile.d/rvm.sh
@ -56,6 +63,6 @@ for file in `find $DOTFILES/zsh/aliases -iname \*.aliases.zsh -print`; do
source $file source $file
done done
for file in `find $DOTFILES/zsh/localconf.d -type f -iname \*.conf -print`; do for file in `find $DOTFILES/zsh/localconf.d -type f -iname \*.conf.zsh -print | sort`; do
source file source file
done done