Skip to content

Instantly share code, notes, and snippets.

@yuki-takeichi
Last active August 29, 2015 14:08
Show Gist options
  • Save yuki-takeichi/db57aa4c429aa0faa6ee to your computer and use it in GitHub Desktop.
Save yuki-takeichi/db57aa4c429aa0faa6ee to your computer and use it in GitHub Desktop.
MBP2014 13inch を買ったので環境設定

前提

  • 購入時のバージョンは10.9.4(Mervericks)

やったこと

Xcode のインストール

  • homebrew が依存してる
  • anyenv が依存してる (git)

最新: Version 6.1 (6A1052d)

homebrew のインストール

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

(https://raw.githubusercontent.com/Homebrew/install/4afb9e930b6b8369f8d5032d6c8fb47ff997665e/install)

$ brew doctor
Your system is ready to brew.

cask

$ brew install caskroom/cask/brew-cask
$ brew cask install google-chrome
$ brew cask install dropbox
$ brew cask install java
$ brew cask install virtualbox
$ brew cask install kobito
$ brew cask install google-japanese-ime

anyenv のインストール

anyenvで開発環境を整える

いろいろめんどいのでhomebrewでは入れない

$ git clone https://github.com/riywo/anyenv ~/.anyenv
$ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(anyenv init -)"' >> ~/.bashrc
$ anyenv install rbenv
$ anyenv install plenv
$ anyenv install pyenv
$ anyenv install ndenv
$ anyenv install goenv

$ exec $SHELL -l
$ anyenv version
goenv: couldn't find any version specified for use
goenv:  # (バグってね?)
ndenv: system (set by /Users/tacke/.anyenv/envs/ndenv/version)
plenv: system (set by /Users/tacke/.anyenv/envs/plenv/version)
pyenv: system (set by /Users/tacke/.anyenv/envs/pyenv/version)
rbenv: system (set by /Users/tacke/.anyenv/envs/rbenv/version)

TODO: 言語をインストールする

Haskell Platform

homebrewで入れるといろいろ大変なのでhaskell platformのパッケージで。

Current release: 2014.2.0.0 New GHC: 7.8.3

$ sudo activate-hs 

Haskell now set to:
    GHC      7.8.3
    Arch.    x86_64
    Platform 2014.2.0.0

View documentation with this command:
    open /Library/Haskell/doc/start.html

複数バージョン間の切り替え&アンインストール

Versions & Uninstallation This and prior versions of GHC and Haskell Platform can be found and then easily removed with the uninstallation command line utility: /Library/Haskell/bin/uninstall-hs This release includes an experimental command line utility to switch between multiple installed versions of the platform: /Library/Haskell/bin/activate-hs Both utilities are safe to run with no arguments, and will give you more information when you do.

キーボードの修飾キーの設定

caps lock -> control

  • システム環境設定
  • キーボード
  • 修飾キー
  • Caps Lock に Control を割当て

コマンドキーに英数キー/かなキーを割り当て

brew cask install karabiner

  • Change Key
  • For Japanese
  • コマンドキーの動作を優先モードv1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment