Upload files to "/"
LAde till script för att installera Homebrew & Mac-appar
This commit is contained in:
96
new_mac_install_homebrew_and_apps.sh
Normal file
96
new_mac_install_homebrew_and_apps.sh
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Installerar först Homebrew och sedan en massa program som jag brukar ha på min Mac
|
||||||
|
|
||||||
|
# Kontrollera om Homebrew är installerat
|
||||||
|
if ! command -v brew &> /dev/null; then
|
||||||
|
echo "Homebrew är inte installerat. Installerar Homebrew..."
|
||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
echo "Homebrew är nu installerat. Kör skriptet igen."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Uppdatera Homebrew
|
||||||
|
echo "Uppdaterar Homebrew..."
|
||||||
|
brew update
|
||||||
|
|
||||||
|
# Lista med kommandoradsverktyg (installeras utan --cask)
|
||||||
|
COMMAND_LINE_TOOLS=(
|
||||||
|
git
|
||||||
|
# Lägg till andra kommandoradsverktyg här om du har några
|
||||||
|
)
|
||||||
|
|
||||||
|
# Lista med GUI-applikationer (installeras med --cask)
|
||||||
|
GUI_APPS=(
|
||||||
|
audacity
|
||||||
|
blender
|
||||||
|
brave-browser
|
||||||
|
cyberduck
|
||||||
|
discord
|
||||||
|
firefox
|
||||||
|
github
|
||||||
|
google-chrome
|
||||||
|
handbrake
|
||||||
|
iterm2
|
||||||
|
keka
|
||||||
|
krita
|
||||||
|
microsoft-edge
|
||||||
|
microsoft-excel
|
||||||
|
microsoft-onenote
|
||||||
|
microsoft-outlook
|
||||||
|
microsoft-powerpoint
|
||||||
|
microsoft-teams
|
||||||
|
microsoft-word
|
||||||
|
monitorcontrol
|
||||||
|
obs
|
||||||
|
onedrive
|
||||||
|
path-of-exile
|
||||||
|
rider
|
||||||
|
shotcut
|
||||||
|
spotify
|
||||||
|
the-unarchiver
|
||||||
|
transmission
|
||||||
|
utm
|
||||||
|
virtualbox
|
||||||
|
vlc
|
||||||
|
visual-studio-code
|
||||||
|
whisky
|
||||||
|
zoom
|
||||||
|
balenaetcher
|
||||||
|
espanso
|
||||||
|
inkscape
|
||||||
|
local
|
||||||
|
logi-options-plus
|
||||||
|
minecraft
|
||||||
|
onyx
|
||||||
|
steam
|
||||||
|
unity
|
||||||
|
unity-hub
|
||||||
|
)
|
||||||
|
|
||||||
|
# Installera kommandoradsverktyg
|
||||||
|
echo "Installerar kommandoradsverktyg..."
|
||||||
|
for tool in "${COMMAND_LINE_TOOLS[@]}"; do
|
||||||
|
if brew list "$tool" &> /dev/null; then
|
||||||
|
echo "$tool är redan installerat."
|
||||||
|
else
|
||||||
|
echo "Installerar $tool..."
|
||||||
|
brew install "$tool"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Installera GUI-applikationer
|
||||||
|
echo "Installerar GUI-applikationer..."
|
||||||
|
for app in "${GUI_APPS[@]}"; do
|
||||||
|
if brew list --cask "$app" &> /dev/null; then
|
||||||
|
echo "$app är redan installerat."
|
||||||
|
else
|
||||||
|
echo "Installerar $app..."
|
||||||
|
brew install --cask "$app"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Rensa upp
|
||||||
|
echo "Rensar upp Homebrew..."
|
||||||
|
brew cleanup
|
||||||
|
|
||||||
|
echo "Alla program är installerade!"
|
||||||
Reference in New Issue
Block a user