Last active
December 25, 2023 10:18
-
-
Save utsav00/388682f408a32ac07cb3ddf13ef817e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
execute() { | |
echo "$ $*" | |
OUTPUT=$($@ 2>&1) | |
if [ $? -ne 0 ]; then | |
echo "$OUTPUT" | |
echo "" | |
echo "Failed to Execute $*" >&2 | |
exit 1 | |
fi | |
} | |
install_zsh_plugins() { | |
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-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
execute ~/.fzf/install | |
echo "plugins = [...plugins zsh-autosuggestions zsh-syntax-highlighting z sudo fzf] >> ~/.zshrc" # Not a fan of this so below line | |
# Add (zsh-autosuggestions zsh-syntax-highlighting z sudo fzf) to .zshrc | |
} | |
sudo apt install build-essential wget curl gpg git -y | |
# Install VSCode | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >packages.microsoft.gpg | |
execute sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg | |
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
rm -f packages.microsoft.gpg | |
execute sudo apt install apt-transport-https -y | |
execute sudo apt install code -y | |
# Intall sdkman | |
curl -s "https://get.sdkman.io" | bash | |
source "$HOME/.sdkman/bin/sdkman-init.sh" | |
# Install pip | |
execute sudo apt install python3-pip # assuming that python3 is already installed | |
echo "export PATH=\"$HOME/.local/bin:\$PATH\"" >>~/.zshrc && source ~/.zshrc | |
# Gnome Extensions | |
sudo apt install gnome-tweaks -y | |
sudo apt install gnome-shell-extensions -y | |
sudo apt install chrome-gnome-shell -y | |
# Install js stuff | |
execute sudo apt install nodejs | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | zsh # nvm | |
execute nvm install --lts | |
npm install -g yarn | |
npm install -g pnpm | |
# Install Tilix | |
execute sudo apt install tilix -y | |
# Change default terminal | |
execute sudo update-alternatives --config x-terminal-emulator | |
# Install zsh | |
sudo apt install zsh -y | |
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" | |
install_zsh_plugins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment