Skip to content

Commit

Permalink
Merge pull request #2 from nomutin/develop
Browse files Browse the repository at this point in the history
✨ `defaults`コマンドを更新
  • Loading branch information
nomutin authored Dec 30, 2023
2 parents 42bd18c + 87f64d5 commit 0691e3f
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
Brewfile.lock.json
1 change: 0 additions & 1 deletion Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ brew "mas"
brew "wget"

cask "arc"
cask "coteditor"
cask "deepl"
cask "docker"
cask "font-hack-nerd-font"
Expand Down
48 changes: 44 additions & 4 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,65 @@ set -eu

brew bundle install --file="${HOME}"/.dotfiles/Brewfile

#"===== MacBook settings =====
# terminalの表示名を`MBA`に変更
sudo scutil --set HostName MBA

# 動きを高速化
defaults write -g com.apple.trackpad.scaling 3
defaults write -g com.apple.mouse.scaling
defaults write -g KeyRepeat -int 1
defaults write -g InitialKeyRepeat -int 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

# ゴミ箱を空にする前の警告の無効化
defaults write com.apple.finder WarnOnEmptyTrash -bool false

# Dock関連
defaults write com.apple.dock autohide-time-modifier -int 0
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock show-recents -bool false
defaults write com.apple.dock tilesize -int 100

# ネットワークストアファイルを作成しない
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.LaunchServices LSQuarantine -bool false

# Bluetoothのマルチタッチトラックパッドでクリックを有効化
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults write -g com.apple.trackpad.scaling 3
defaults write -g com.apple.trackpad.tapBehavior -int 1

# Finder関連
defaults write com.apple.finder NewWindowTarget -string PfHm
defaults write com.apple.finder NewWindowTargetPath -string "file:///Users/nomura/"
defaults write com.apple.finder ShowRecentTags -int 0
defaults write com.apple.finder ShowMountedServersOnDesktop -int 0
defaults write com.apple.finder SidebarTagsSctionDisclosedState -int 1
defaults write com.apple.finder PreferencesWindow.LastSelection -string SDBR

# テキストエディットをプレーンテキストで使う
defaults write com.apple.TextEdit RichText -int 0

# 隠しファイルを常にファインダーに表示する
defaults write com.apple.finder AppleShowAllFiles -bool YES && killall Finder

# スクリーンショットをjpgで保存
defaults write com.apple.screencapture type jpg

# 全ての拡張子のファイルを表示する
defaults write -g AppleShowAllExtensions -bool true

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

killall Finder
killall Dock
sudo shutdown -r now
1 change: 1 addition & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cd .dotfiles

make deploy

# shellcheck disable=SC1090
source ~/.zshrc

if ! (type 'brew' >/dev/null 2>&1); then
Expand Down

0 comments on commit 0691e3f

Please sign in to comment.