From 6a8dbabc79e883b18bf76309d1687202593945ac Mon Sep 17 00:00:00 2001 From: JGill Date: Thu, 16 Sep 2021 14:29:05 +0530 Subject: [PATCH] Moved .zcompdump cache files to .cache/zsh; omz update command --- quickz.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quickz.sh b/quickz.sh index 29b2c3d..c8bdb70 100755 --- a/quickz.sh +++ b/quickz.sh @@ -37,6 +37,11 @@ else mkdir -p ~/.config/quickzsh # external plugins, things, will be instlled in here fi +mkdir -p ~/.cache/zsh/ # this will be used to store .zcompdump zsh completion cache files which normally clutter $HOME + +if [ -f ~/.zcompdump ]; then + mv ~/.zcompdump* ~/.cache/zsh/ +fi if [ -d ~/.config/oh-my-zsh/plugins/zsh-autosuggestions ]; then cd ~/.config/oh-my-zsh/plugins/zsh-autosuggestions && git pull @@ -144,7 +149,7 @@ fi # source ~/.zshrc echo -e "\nSudo access is needed to change default shell\n" -if chsh -s $(which zsh) && /bin/zsh -i -c upgrade_oh_my_zsh; then +if chsh -s $(which zsh) && /bin/zsh -i -c 'omz update'; then echo -e "Installation Successful, exit terminal and enter a new session" else echo -e "Something is wrong"