Skip to content

Instantly share code, notes, and snippets.

@alefesta
Last active November 8, 2021 14:52
Show Gist options
  • Save alefesta/49f10ffd082f9188a7a61172c6116b99 to your computer and use it in GitHub Desktop.
Save alefesta/49f10ffd082f9188a7a61172c6116b99 to your computer and use it in GitHub Desktop.
A simple gist to setup a standard environment
!#/bin/bash
sudo add-apt-repository universe
sudo apt update
sudo apt install --yes powerline vim git
echo "
# Powerline configuration
if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
source /usr/share/powerline/bindings/bash/powerline.sh
fi
" >> $HOME/.bashrc
echo "source $HOME/.bashrc"
echo "...done..."
# wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
# sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
# echo "export PATH=$PATH:/usr/local/go/bin" >> $HOME/.profile
# source $HOME/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment