mirror of
https://github.com/guilhermewerner/dotfiles
synced 2025-06-13 18:04:18 +00:00
Create Sample Instalation Scripts
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
*.deb
|
89
Bootstrap.ps1
Normal file
89
Bootstrap.ps1
Normal file
@ -0,0 +1,89 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
cd ~
|
||||
|
||||
# Windows
|
||||
|
||||
if ($IsWindows)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
# Mac
|
||||
|
||||
elseif ($IsMacOS)
|
||||
{
|
||||
# Homebrew
|
||||
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
|
||||
# ZSH
|
||||
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||
|
||||
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
|
||||
|
||||
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
|
||||
}
|
||||
|
||||
# Linux
|
||||
|
||||
elseif ($IsLinux)
|
||||
{
|
||||
# Base Dependencies
|
||||
|
||||
sudo apt install git curl wget nano build-essential ffmpeg libssl-dev -y
|
||||
|
||||
# ZSH
|
||||
|
||||
sudo apt install zsh -y
|
||||
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||
|
||||
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
|
||||
|
||||
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
|
||||
|
||||
# GitHub CLI
|
||||
|
||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
|
||||
|
||||
sudo apt-add-repository https://cli.github.com/packages
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt install gh -y
|
||||
|
||||
# Java
|
||||
|
||||
sudo apt install default-jre default-jdk -y
|
||||
|
||||
# Docker
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
|
||||
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
|
||||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
|
||||
|
||||
sudo apt update
|
||||
|
||||
apt-cache policy docker-ce
|
||||
|
||||
sudo apt install docker-ce -y
|
||||
|
||||
sudo systemctl status docker
|
||||
|
||||
# Add User to Docker Group
|
||||
|
||||
sudo usermod -aG docker ${USER}
|
||||
|
||||
su - ${USER}
|
||||
|
||||
id -nG
|
||||
|
||||
# Pull Docker images
|
||||
|
||||
}
|
36
Powershell.sh
Normal file
36
Powershell.sh
Normal file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
cd ~
|
||||
|
||||
# Linux
|
||||
|
||||
if [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]
|
||||
then
|
||||
# Update System
|
||||
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
|
||||
# Powershell
|
||||
|
||||
sudo apt install wget apt-transport-https software-properties-common -y
|
||||
|
||||
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
|
||||
|
||||
sudo dpkg -i packages-microsoft-prod.deb
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo add-apt-repository universe
|
||||
sudo add-apt-repository multiverse
|
||||
|
||||
sudo apt update
|
||||
|
||||
sudo apt-get install powershell -y
|
||||
|
||||
# Mac
|
||||
|
||||
elif [ "$(uname)" = "Darwin" ]
|
||||
then
|
||||
echo "Mac"
|
||||
fi
|
Reference in New Issue
Block a user