Last active
January 18, 2023 20:30
-
-
Save papilip/b69ee2f630a32ec0f1f2093e145312e0 to your computer and use it in GitHub Desktop.
Pour terminer l’installation d’un Mac
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
#!/usr/bin/env bash | |
# | |
#-------------------------------- | |
# Dans une fenêtre de Terminal | |
#-------------------------------- | |
# mkdir -p ~/tmp && cd ~/tmp && curl https://gist.githubusercontent.com/papilip/b69ee2f630a32ec0f1f2093e145312e0/raw > osx_post_install.sh && chmod +x osx_post_install.sh && ./osx_post_install.sh | |
#-------------------------------- | |
# Installation de HomeBrew | |
#-------------------------------- | |
# Check for Homebrew, install if we don't have it | |
if test ! $(which brew); then | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> ~/.zprofile | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
fi | |
brew update | |
#-------------------------------- | |
# Installation de Oh My Zsh | |
#-------------------------------- | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
#-------------------------------- | |
# Installer les applications ligne de commande | |
#-------------------------------- | |
PACKAGES=( | |
#archey # https://obihann.github.io/archey-osx Graphical system information display for macOS | |
autojump # https://github.com/wting/autojump Shell extension to jump to frequently used directories | |
findutils | |
git # https://git-scm.com Distributed revision control system | |
ghostscript # https://www.ghostscript.com Interpreter for PostScript and PDF | |
gzip # https://www.gnu.org/software/gzip Popular GNU data compression program | |
p7zip # https://github.com/jinfeihan57/p7zip 7-Zip (high compression file archiver) implementation | |
sha3sum # https://github.com/maandree/sha3sum Keccak, SHA-3, SHAKE, and RawSHAKE checksum utilities | |
trash # https://hasseg.org/trash CLI tool that moves files or folder to the trash | |
tree # http://mama.indstate.edu/users/ice/tree Display directories as trees (with optional color/ | |
wget # https://www.gnu.org/software/wget Internet file retriever | |
wifi-password # https://github.com/rauchg/wifi-password Show the current WiFi network password | |
youtube-dl # https://youtube-dl.org Download YouTube videos from the command-line | |
) | |
brew install ${PACKAGES[@]} | |
#-------------------------------- | |
# Installer les applications graphiques | |
#-------------------------------- | |
CASKS=( | |
dropbox # https://www.dropbox.com Client for the Dropbox cloud storage service | |
firefox # https://www.mozilla.org/firefox Web browser | |
flycut # https://github.com/TermiT/Flycut Clipboard manager for developers | |
gimp # https://www.gimp.org Free and open-source image editor | |
google-chrome # https://www.google.com/chrome Web browser | |
gramps # https://gramps-project.org/blog Genealogy software | |
inkscape # https://inkscape.org Vector graphics editor | |
iterm2 # https://www.iterm2.com Terminal emulator as alternative to Apple's Terminal app | |
libreoffice-language-pack # https://www.libreoffice.org Collection of alternate languages for LibreOffice | |
opera # https://www.opera.com Web browser | |
rectangle # https://rectangleapp.com Move and resize windows using keyboard shortcuts or snap areas | |
scribus # https://www.scribus.net Free and open-source page layout program | |
speedcrunch # https://www.speedcrunch.org High-precision scientific calculator | |
sublime-text # https://www.sublimetext.com Text editor for code, markup and prose | |
teamviewer # https://www.teamviewer.com Remote access and connectivity software focused on security | |
the-unarchiver | |
vlc # https://www.videolan.org/vlc Multimedia player | |
) | |
brew install ${CASKS[@]} | |
#-------------------------------- | |
# Autres configurations | |
#-------------------------------- | |
#echo "export PATH=\"/usr/local/sbin:\$PATH\"\narchey" >> ${ZDOTDIR:-~}/.zshrc | |
# Show filename extensions by default | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
#-------------------------------- | |
# Post install | |
#-------------------------------- | |
open '/usr/local/Caskroom/libreoffice-language-pack/7.4.4/LibreOffice Language Pack.app' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment