Skip to content

Commit

Permalink
Full translation of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoizey committed Sep 12, 2023
1 parent a97f507 commit 13279f9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
24 changes: 11 additions & 13 deletions post-sync.sh
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
#!/bin/sh

## README
# /!\ Ce script d'installation est conçu pour mon usage. Ne le lancez pas sans vérifier chaque commande ! /!\
# /!\ This installation script is designed for my OWN use.
# Do not run it without checking each command!

echo "Restauration des préférences"
# Sélection du service de cloud (à décommenter si vous n'utilisez pas Dropbox, c'est le service par défaut) : https://github.com/lra/mackup/blob/master/doc/README.md
echo "Restoring preferences synced with Mackup on Synology Drive"
# Default Mackup sync engine is Dropbox:
# https://github.com/lra/mackup/blob/master/doc/README.md
echo -e "[storage]\nengine = file_system\npath = Synology/Personnel" >> ~/.mackup.cfg

# Récupération de la sauvegarde sans demander à chaque fois l'autorisation
# Backup recovery without having to request authorisation each time
mackup restore -n

# Enregistrement des copies d'écran sur Dropbox
# Saving screenshots to Synology Drive
defaults write com.apple.screencapture location -string "$HOME/Synology/Personnel/Captures"

echo "Configuration de dnsmasq"
echo "dnsmasq configuration"
# http://passingcuriosity.com/2013/dnsmasq-dev-osx/
if [ ! -e "/usr/local/etc/dnsmasq.conf" ]; then
echo 'address=/.test/127.0.0.1' >> $(brew --prefix)/etc/dnsmasq.conf
sudo brew services start dnsmasq
fi

# echo "Installation de oh-my-zsh"
# Installation de oh-my-zsh
# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

echo "Configuration de npm"
# Change npm's config so it uses ^ (minor versions) by default when saving dependencies
echo "npm configuration"
npm config set save-prefix '^'

echo "Configuration de git"
echo "git configuration"
git config --global init.defaultBranch main

echo ""
echo "ET VOILÀ !"
echo "Il est maintenant possible d'activer d'autres dossiers dans la synchronisation Dropbox."
echo "You can now activate other folders in Synology Drive synchronization."
11 changes: 5 additions & 6 deletions run-first.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,21 +236,20 @@ sudo defaults write com.apple.systemsound com.apple.sound.beep.volume -float 1

## IMAGES

# Enregistrer les screenshots en PNG (autres options: BMP, GIF, JPG, PDF, TIFF)
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string "png"

# Mettre une ombre sur les screenshots
# Enable shadows in screenshots
defaults write com.apple.screencapture disable-shadow -bool false

## ************ Fin de l'installation *********
echo "Finder et Dock relancés… redémarrage nécessaire pour terminer."
echo "Restarting Finder and Dock. You'll need to restart the computer to complete."
killall Dock
killall Finder

echo "Derniers nettoyages"
echo "Cleaning"
brew cleanup
rm -f -r /Library/Caches/Homebrew/*

echo ""
echo "ET VOILÀ !"
echo "Après synchronisation des données Synology Drive (seuls les dossiers « Mackup » et « Settings » sont nécessaires dans un premier temps), lancer le script post-cloud.sh"
echo "Once you have synchronized your Synology Drive data (initially only the "Mackup" and "Settings" folders are required), run the post-cloud.sh script"
3 changes: 2 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh

## README
# /!\ Ce script d'installation est conçu pour mon usage. Ne le lancez pas sans vérifier chaque commande ! /!\
# /!\ This installation script is designed for my OWN use.
# Do not run it without checking each command!

mkdir $HOME/Downloads/macOS-init
cd $HOME/Downloads/macOS-init
Expand Down

0 comments on commit 13279f9

Please sign in to comment.