# History en directorio de cache:
HISTSIZE=10000000
SAVEHIST=10000000
-HISTFILE=$XDG_CACHE_HOME/zsh/history # <-- Es necesario crear el directorio y de preferencia eliminar ~/.zsh_history que se crea por defecto
+HISTFILE=$XDG_CACHE_HOME/zsh/hist
# Basic auto/tab complete:
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
-compinit
+touch $XDG_CACHE_HOME/zsh/.zcompdump
+compinit -d $XDG_CACHE_HOME/zsh/.zcompdump
_comp_options+=(globdots)
# Importar aliases
# Main
if [ $isVoid ]; then
- ln -sf /git/dotAle/zshrc ~/.zshrc
+ ln -sf /git/dotAle/.zshrc ~/.zshrc
mkdir -p /home/ale/.config
mkdir -p /home/ale/.cache/zsh
touch /home/ale/.cache/zsh/hist
fi
ln -sf /git/dotAle/config/${dir##*/} /home/ale/.config/
done
+ if [ -f ~/.zcompdump ]; then
+ rm ~/.zcompdump
+ fi
mkdir -p ~/.ssh
ln -sf /git/dotAle/ssh/* ~/.ssh/
else
- ln -sf /git/dotAle/bashrc ~/.bashrc
+ ln -sf /git/dotAle/.bashrc ~/.bashrc
mkdir -p ~/.config
cp -r /git/dotAle/config/* ~/.config/
rm -rf ~/.config/zsh