Skip to content

Instantly share code, notes, and snippets.

@hkboujrida
Last active August 16, 2021 18:52
Show Gist options
  • Save hkboujrida/fab74c3c52b833232e946dd88145fa1e to your computer and use it in GitHub Desktop.
Save hkboujrida/fab74c3c52b833232e946dd88145fa1e to your computer and use it in GitHub Desktop.
init dev env ubuntu
#!/bin/bash
echo "updating system..."
sudo apt update && sudo apt upgrade -yy
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
echo "installing curl git zsh fonts-powerline terraform..."
sudo apt install curl git zsh fonts-powerline terraform -y
echo "installing dotnet 3.1 & 5 ..."
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-5.0 dotnet-sdk-3.1
echo "installing vscode ..."
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt install code -y
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sed -i 's/_THEME=.*/_THEME=\"powerlevel10k\/powerlevel10k\"/g' ~/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
sed -i 's/plugins=.*/plugins=(emoji git web-search sudo history zsh_reload docker terraform kubectl dotnet zsh-syntax-highlighting zsh-autosuggestions zsh-completions)/g' ~/.zshrc
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
tput setaf 1; echo "IMPORTANT :"
echo 'Get Firacode nerd font at https://www.nerdfonts.com'
echo 'Get Firacode nerd font at https://www.nerdfonts.com'
echo 'For vscode add this line into settings.json : "terminal.integrated.fontFamily": "FiraCode Nerd Font Mono",'
echo 'Execute command: p10k configure'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment