Skip to content

Instantly share code, notes, and snippets.

@hoswey
Created June 2, 2016 03:21
Show Gist options
  • Save hoswey/44bea815d4b431727f56e867440d1ea7 to your computer and use it in GitHub Desktop.
Save hoswey/44bea815d4b431727f56e867440d1ea7 to your computer and use it in GitHub Desktop.
sudo apt-get install -y --force-yes 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 "export SHELL=/bin/zsh" | tee -a ~/.bashrc
echo "exec /bin/zsh -l" | tee -a ~/.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`" | tee -a ~/.zshrc
echo 'export PS1="$ip $PS1"' | tee -a ~/.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