Skip to content

Instantly share code, notes, and snippets.

@hoswey
Created May 13, 2016 02:16
Show Gist options
  • Save hoswey/ae03de4015970ba208366aa0ba1222a1 to your computer and use it in GitHub Desktop.
Save hoswey/ae03de4015970ba208366aa0ba1222a1 to your computer and use it in GitHub Desktop.
#!/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 "\nexport SHELL=/bin/zsh" >> ~/.bashrc
echo "exec /bin/zsh -l" >> ~/.bashrc
fi
sed -i '/plugins=(git)/a plugins=(autojump)' .zshrc
echo "ip=\`ip addr show dev eth0 | grep \"inet \" | cut -d\" \" -f6 | cut -d \"/\" -f1 | head -n 1\`" >> ~/.zshrc
echo "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