This commit is contained in:
Smirnov Olexandr 2020-06-05 18:29:47 +03:00
parent ad443ef088
commit 4901ad0581
4 changed files with 34 additions and 40 deletions

View file

@ -1,12 +1,12 @@
#!/bin/bash
read -p "All your git, vim, bash, tmux, zsh settings will be deleted [y/n]" CONTINUE
read -p "All your git, vim, bash, tmux, zsh settings will be deleted [y/n]: " CONTINUE
if [[ "$CONTINUE" = "y" ]] || [[ "$CONTINUE" = "Y" ]]; then
rm -rf ~/.vimrc ~/.vim
rm -rf ~/.gitconfig ~/.git
rm -rf ~/.bashrc ~/.bash
rm -rf ~/.tmux ~/.tmux
rm -rf ~/.zshrci
rm -rf ~/.zshrc
fi
read -p "Install vim config [y/n]: " VIM_CONF
@ -41,3 +41,9 @@ if [[ "$ZSH_CONF" = "y" ]] || [[ "$ZSH_CONF" = "Y" ]]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
mv zshrc ~/.zshrc
fi
if [[ "$VIM_CONF" = "y" ]] || [[ "$VIM_CONF" = "Y" ]]; then
clear
echo "vim +source~/.vimrc +PlugInstall"
echo "For install plugins in vim"
fi