-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·29 lines (21 loc) · 817 Bytes
/
deploy.sh
File metadata and controls
executable file
·29 lines (21 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/bash
echo "> Current configuration files for Vim and ZSH will be overriden."
echo "> Press any key to continue or press ^C to abort"
read
git reset --hard HEAD
defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false
# Reinstall Vim Plug
rm -f .vim/autoload/plug.vim
curl -fLo .vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Prepare ZSH (Pure prompt)
mkdir -p .zfunctions
rm -rf .zfunctions/pure
git clone git@github.com:sindresorhus/pure.git .zfunctions/pure
# Create relatives links
rm -rf ~/.vim* && ln -s $PWD/.vim* ~
rm -f ~/.zshrc && ln -s $PWD/.zshrc ~
rm -rf ~/.zfunctions && ln -s $PWD/.zfunctions ~
cd
vim +PlugInstall +qa!
echo
echo "> Configurations updated. Now just run \`source .zshrc\`"