-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
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
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." |
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
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