Moved .zcompdump cache files to .cache/zsh; omz update command
This commit is contained in:
@@ -37,6 +37,11 @@ else
|
|||||||
mkdir -p ~/.config/quickzsh # external plugins, things, will be instlled in here
|
mkdir -p ~/.config/quickzsh # external plugins, things, will be instlled in here
|
||||||
fi
|
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
|
if [ -d ~/.config/oh-my-zsh/plugins/zsh-autosuggestions ]; then
|
||||||
cd ~/.config/oh-my-zsh/plugins/zsh-autosuggestions && git pull
|
cd ~/.config/oh-my-zsh/plugins/zsh-autosuggestions && git pull
|
||||||
@@ -144,7 +149,7 @@ fi
|
|||||||
# source ~/.zshrc
|
# source ~/.zshrc
|
||||||
echo -e "\nSudo access is needed to change default shell\n"
|
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"
|
echo -e "Installation Successful, exit terminal and enter a new session"
|
||||||
else
|
else
|
||||||
echo -e "Something is wrong"
|
echo -e "Something is wrong"
|
||||||
|
|||||||
Reference in New Issue
Block a user