#pragma section-numbers off [[TableOfContents]] = 概要 = macOS Sierra(10.12) 関連 = Xcode Command Line Tools = * メニューXcode * Open Developer Tool * More Developer Tools 「Command Line Tools (macOS 10.12) for Xcode8.3.dmg」 = SSH パスフレーズ = Sierra では標準でパスフレーズを毎回確認してくる。 SSH が v7系にバージョンアップした影響で、Sierra特有の物ではない。Linux系でもSSH が v7系になったら同じ問題が発生する。 {{{ ~/.ssh/config }}} に以下を追加 {{{ AddKeysToAgent yes UseKeychain yes }}} = キー配列 = Karabiner-Elements を利用 https://github.com/tekezo/Karabiner-Elements/blob/master/README.md HHKB Lite2 MacでEmacs使い。以下のような設定をしている 「Simple Modifications」 * grave_accent_and_tilde(`) -> left_command * PCキーボードの無変換キー -> left_control * PCキーボードの変換キー -> right_command 後は 以下で Emacs key bindings を import して control+keys は有効にしている https://pqrs.org/osx/karabiner/complex_modifications/#emulation_modes SandS を有効にする場合、「システム環境設定」->「キーボード」->「ショートカット」->「入力ソース」に行き「前の入力ソースを選択」のチェックを外す {{{ curl -O https://raw.githubusercontent.com/tekezo/Karabiner-Elements/70fcaa177d4d0b409e77c6166505a34780316848/examples/spacebar_to_shift.json mv spacebar_to_shift.json ~/.config/karabiner/assets/complex_modifications/ }}} Karabiner-Elements の 「Complex Modifications」 に行き「Add rule」にいって * 「Change spacebar to left_shift」 * 「Emacs key bindings」 の二つを有効化 = マウス = Macはマウスの移動速度がいまいちの場合があるので、以下で設定する。有料 980円だが、かなり快適になるので必須。 [http://plentycom.jp/cursorsense/index.html カーソルセンス] = Python = == インストール == https://www.python.org/downloads/ https://pypi.python.org/pypi/virtualenv == Pyhton でSSLのエラ == {{{ urllib.error.URLError: }}} 以下のような感じに実行 {{{ /Applications/Python\ 3.6/Install\ Certificates.command }}} = Homebrew = https://brew.sh/index_ja.html {{{ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" }}} == Github API token == search を正常に実行するには「HOMEBREW_GITHUB_API_TOKEN」の設定をした方が良い。 Github に行き「Setting」->「Personal access tokens」に行き「Generate new token」で生成する。 コマンドラインにて keychain に上記を登録 {{{ security add-generic-password -a homebrew-github-api-token -s homebrew-github-api-token -w XXXXXXXXXXXXXXX }}} bashrc や zshrc にて以下のように設定すると keychain 管理になる {{{ export HOMEBREW_GITHUB_API_TOKEN=$(security find-generic-password -a homebrew-github-api-token -s homebrew-github-api-token -w) }}} == インストール == {{{ brew install wget brew install tmux brew install reattach-to-user-namespace brew install autoconf automake brew install texinfo brew install git brew install gnu-sed gawk brew install gauche brew install go brew install peco pt brew install libxml2 }}} {{{ brew cask install nocturn brew cask install macdown brew cask install kindle }}} = 参考サイト =