Skip to content

Instantly share code, notes, and snippets.

@citricacid-pl
Last active August 16, 2018 11:30
Show Gist options
  • Save citricacid-pl/62e4e1e6274034237dd37dd9637773fe to your computer and use it in GitHub Desktop.
Save citricacid-pl/62e4e1e6274034237dd37dd9637773fe to your computer and use it in GitHub Desktop.
Run some installations after clean Ubuntu setup
#!/bin/bash
# Just some settings
bold=`tput bold`
green=`tput setaf 2`
normal=`tput sgr0`
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
function msg() {
echo -e "${bold}${green}$1${normal}" >&2
}
# Installation
echo "Install Webstorm"
sudo snap install webstorm
msg "Install Tilix"
sudo add-apt-repository ppa:webupd8team/terminix
sudo apt update
sudo apt install tilix -y
echo "if [ $TILIX_ID ] || [ $VTE_VERSION ]; then" >> ~/.bashrc
echo " source /etc/profile.d/vte.sh" >> ~/.bashrc
echo "fi" >> ~/.bashrc
sudo ln -s /etc/profile.d/vte-2.91.sh /etc/profile.d/vte.sh
msg "Install Git"
sudo apt install git -y
msg "Install Bash Git Prompt"
cd ~
git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt --depth=1
echo "GIT_PROMPT_ONLY_IN_REPO=1" >> ~/.bashrc
echo "source ~/.bash-git-prompt/gitprompt.sh" >> ~/.bashrc
msg "Install Node.js"
cd $DIR
wget https://gist.githubusercontent.com/citricacid-pl/1188926d1b6ab141d5f8/raw/cb2b9e6dc552efff589fbdb073203961547f6707/install-node.sh
chmod a+x install-node.sh
. ./install-node.sh
msg "Done. Rerun bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment