Skip to content

Instantly share code, notes, and snippets.

@sahara-ooga
Last active June 12, 2020 01:37
Show Gist options
  • Save sahara-ooga/0a8d5fdda17e75a71825f8fbeaae352a to your computer and use it in GitHub Desktop.
Save sahara-ooga/0a8d5fdda17e75a71825f8fbeaae352a to your computer and use it in GitHub Desktop.
新規Macの環境設定

GUIでないとできない?設定

スクリーンショットの設定

スクリーンショットの保存場所の変更

デフォルトでは、スクリーンショットはデスクトップに保存されるので、picturesフォルダの中にscreenshotsフォルダを作って、その中に保存するようにする。

$ defaults write com.apple.screencapture location ~/Pictures/screen_shots
# サービス再起動すると設定が反映されます
$ killall SystemUIServer

設定をデフォルトに戻す際は

# デフォルトに戻す場合はこちら。設定値を削除するイメージです。
$ defaults delete com.apple.screencapture location

名前を変更

デフォルトでは「スクリーンショット 2020-06-12 10.31.05.png」という名称で保存されるので、日付だけに変更する。

$ defaults write com.apple.screencapture name ""

Macでスクリーンショットを撮る方法と保存先&形式を変える方法 - Qiita

# まず、ネットワークの設定を済ませてください。
# xcode-select
# xcode-selectはもともと入っている
# Xcodeコマンドラインツールのインストールが始まる
xcode-select --install
# Homebrewのインストール
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Homebrew caskのインストール
brew tap homebrew/cask-cask
# masコマンド
# http://www.nowhere.co.jp/blog/archives/20180620-170739.html
brew install mas
# mas list
# mas outdated
# mas upgrade
# ちなみに、Apple セキュリティアップデートは
# softwareupdate --list
# softwareupdate --install --all
# https://support.apple.com/ja-jp/HT200113
# fastlane
brew install fastlane
## Set up environment variables for fastlane
echo export LC_ALL=en_US.UTF-8 >> ~/.zshrc
echo export LANG=en_US.UTF-8 >> ~/.zshrc
#Xcode-install
# https://sussan-po.com/2019/08/29/how-to-use-xcversion/
# https://shinespark.hatenablog.com/entry/2018/08/16/080000
# 定数定義
readonly DEVELOPER_ACCOUNT_ID="your develper account id"
readonly DEVELOPER_ACCOUNT_PASSWORD="your developer accunt password"
# インストール
gem install xcode-install
echo export XCODE_INSTALL_USER=$DEVELOPER_ACCOUNT_ID >> ~/.zshrc
export XCODE_INSTALL_PASSWORD=$DEVELOPER_ACCOUNT_PASSWORD >> ~/.zshrc
#インストール可能なXcodeのリストアップ
xcversion list
#Xcodeのインストール
# xcversion install xx.y
# caskでインストールする各種アプリ
brew cask install google-japanese-ime # Google日本語入力
brew cask install slack
# masでインストールする各種アプリ
mas install 409183694 #keynote
mas install 539883307 # line
mas install 897118787 # shazam
mas install 425424353 # The Unarchiver
mas install 1278508951 # Trello
mas install 1482454543 # Twitter
# Rust
# using rustup
# https://www.rust-lang.org/tools/install
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Python
# Pyenvで管理する
# https://github.com/pyenv/pyenv#installation
brew install pyenv
# fullfill dependencies
brew install openssl readline sqlite3 xz zlib
# install python
pyenv install 3.7.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment