Skip to content

Instantly share code, notes, and snippets.

@yalovek
Created May 4, 2016 15:53
Show Gist options
  • Save yalovek/f2150ed316099d5dd4031b07086ff178 to your computer and use it in GitHub Desktop.
Save yalovek/f2150ed316099d5dd4031b07086ff178 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# Install new vim
sudo apt-get build-dep vim
unzip vim-master.zip
cd vim-master
make
sudo make install
hash -r
vim --version
# Install plugins for vim
unzip spf13-vim3-3.0.zip
cd spf13-vim3-3.0
./bootstrap.sh
#Install powerline-shell
chmod 755 ~/powerline-shell.py
echo 'function _update_ps1() {
PS1="$(~/powerline-shell.py $? 2> /dev/null)"
}
if [ "$TERM" != "linux" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi' >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment