mirror of
https://github.com/guilhermewerner/dotfiles
synced 2025-06-15 10:54:18 +00:00
Create Sample Instalation Scripts
This commit is contained in:
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