Created
May 12, 2016 11:56
-
-
Save hoswey/d3243e0a6f409dc0ba6a7b8a38ccf633 to your computer and use it in GitHub Desktop.
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 "already exists" | |
else | |
echo -ne "\nexport SHELL=/bin/zsh" >> ~/.bashrc | |
echo -ne "exec /bin/zsh -l" >> ~/.bashrc | |
fi | |
sed -i '/plugins=(git)/a plugins=(autojump)' .zshrc | |
echo -ne "ip=\`ip addr show dev eth0 | grep \"inet \" | cut -d\" \" -f6 | cut -d \"/\" -f1 | head -n 1\`" >> ~/.zshrc | |
echo -ne "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