Skip to content

Instantly share code, notes, and snippets.

@hoswey
Created May 11, 2016 07:34
Show Gist options
  • Save hoswey/fe26e342b27eb9409b63cc4ffd188b27 to your computer and use it in GitHub Desktop.
Save hoswey/fe26e342b27eb9409b63cc4ffd188b27 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 -ne "\nexport SHELL=/bin/zsh" >> ~/.bashrc
echo -e "exec /bin/zsh -l" >> ~/.bashrc
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