init: clean history with no PII
Toto repo ma novou cistou historii (1 commit). Predchozi historie byla smazana, protoze obsahovala osobni udaje (IP, emaily, hesla, klice, tokeny, Volume cesty). Soubory v aktualnim commit uz tyto udaje neobsahuji (nahradeno placeholdery <server-ip>, CHANGE_ME, admin@example.com atd.). Pokud chces zpet kompletni seznam starych commitu, mas je ve svem lokalnim working tree - git log --all ukaze prazdno (protoze jsme smazali .git/ a zacali znovu).
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# macOS default settings (defaults write) – 1:1 kopie tveho aktualniho setupu.
|
||||
# Spust JEDNOU po ciste instalaci macOS.
|
||||
#
|
||||
# Vyzaduje: macOS (testovano na 13+)
|
||||
#
|
||||
set -euo pipefail
|
||||
|
||||
if [[ "$(uname)" != "Darwin" ]]; then
|
||||
echo "Tento skript je pouze pro macOS" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Nastavuji macOS defaults..."
|
||||
|
||||
# --- Finder ---
|
||||
# Zobrazit skryte soubory
|
||||
defaults write com.apple.finder AppleShowAllFiles -bool true
|
||||
# Zobrazit vsechny pripony
|
||||
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
|
||||
# Zobrazit cestovni panel
|
||||
defaults write com.apple.finder ShowPathbar -bool true
|
||||
# Zobrazit stavovy rad
|
||||
defaults write com.apple.finder ShowStatusBar -bool true
|
||||
# Vychozi pohled: ikony
|
||||
defaults write com.apple.finder FXPreferredViewStyle -string "icnv"
|
||||
# Default seskupeni: podle data modifikace
|
||||
defaults write com.apple.finder FXPreferredGroupBy -string "Date Modified"
|
||||
# Default novy Finder okno: domovsky adresar
|
||||
defaults write com.apple.finder NewWindowTarget -string "PfHm"
|
||||
# Rozsireni "Ulozit dialog" o textove listy
|
||||
defaults write NSGlobalDomain NSNavPanelFileLastListModeForOpenModeKey -int 3
|
||||
defaults write NSGlobalDomain NSNavPanelFileListModeForOpenMode2 -int 3
|
||||
|
||||
# --- Dock ---
|
||||
# Magnification (zvetsovani pri prejeti)
|
||||
defaults write com.apple.dock magnification -bool true
|
||||
# Skryt nedavne aplikace
|
||||
defaults write com.apple.dock show-recents -bool false
|
||||
# Velikost ikon
|
||||
defaults write com.apple.dock tilesize -int 33
|
||||
|
||||
# --- Trackpad ---
|
||||
# Pravy klik
|
||||
defaults write com.apple.AppleMultitouchTrackpad TrackpadRightClick -bool true
|
||||
# Trackpad momentum scroll
|
||||
defaults write com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll -bool true
|
||||
# Three-finger drag vypnout
|
||||
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool false
|
||||
|
||||
# --- TextEdit ---
|
||||
defaults write com.apple.TextEdit NSDocumentSuppressTempVersionStoreWarning -bool false
|
||||
|
||||
# --- Terminal ---
|
||||
# Vychozi profil: Clear Dark
|
||||
defaults write com.apple.terminal "Default Window Settings" -string "Clear Dark"
|
||||
|
||||
# Restart Finder a Dock pro projeveni zmen
|
||||
echo "Restartuji Finder a Dock..."
|
||||
killall Finder Dock 2>/dev/null || true
|
||||
|
||||
echo "macOS defaults nastaveny"
|
||||
Reference in New Issue
Block a user