Skip to content

Commit

Permalink
🐛 init.shのエラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nomutin committed Dec 30, 2023
1 parent d6ef77c commit 1ed6898
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sudo scutil --set HostName MBA

# 動きを高速化
defaults write -g com.apple.trackpad.scaling 3
defaults write -g com.apple.mouse.scaling
defaults write -g com.apple.mouse.scaling 1.5
defaults write -g KeyRepeat -int 1
defaults write -g InitialKeyRepeat -int 10

Expand All @@ -19,10 +19,10 @@ defaults write -g com.apple.mouse.tapBehavior -int 1
# クラッシュレポートを無効化する
defaults write com.apple.CrashReporter DialogType -string "none"

## 未確認のアプリケーションを実行する際のダイアログを無効にする
# 未確認のアプリケーションを実行する際のダイアログを無効にする
defaults write com.apple.LaunchServices LSQuarantine -bool false

## ダウンロードしたファイルを開くときの警告ダイアログをなくす
# ダウンロードしたファイルを開くときの警告ダイアログをなくす
defaults write com.apple.LaunchServices LSQuarantine -bool false

# ゴミ箱を空にする前の警告の無効化
Expand Down Expand Up @@ -61,7 +61,7 @@ defaults write com.apple.screencapture type jpg
defaults write -g AppleShowAllExtensions -bool true

# .DS_Storeを作成しない
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

killall Finder
killall Dock
Expand Down
7 changes: 7 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ make deploy
# shellcheck disable=SC1090
source ~/.zshrc

if ! xcode-select -p &>/dev/null; then
xcode-select --install
until xcode-select -p &>/dev/null; do
sleep 5
done
fi

if ! (type 'brew' >/dev/null 2>&1); then
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Expand Down

0 comments on commit 1ed6898

Please sign in to comment.