Created
May 11, 2016 05:46
-
-
Save hoswey/35d480721d7d27631b08b3bfbae94870 to your computer and use it in GitHub Desktop.
install zsh and vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install -y autojump wget curl git software-properties-common zsh lrzsz | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
if grep -q "export SHELL=/bin/zsh" ~/.bashrc | |
then | |
echo -ne "\nexport SHELL=/bin/zsh" >> ~/.bashrc | |
echo -e "exec /bin/zsh -l" | |
else | |
echo "not found" | |
fi | |
echo -ne "\nplugins=(autojump)" | |
echo -e "ip=\`ip addr show dev eth0 | grep \"inet \" | cut -d\" \" -f6 | cut -d \"/\" -f1 | head -n 1\`" >> ~/.zshrc | |
echo -e "export PS1=\"\$ip \$PS1\"" >> ~/.zshrc | |
curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment