Skip to content

Instantly share code, notes, and snippets.

@zchee
Last active September 15, 2021 21:39
Show Gist options
  • Save zchee/a31d7d95793381f0788e to your computer and use it in GitHub Desktop.
Save zchee/a31d7d95793381f0788e to your computer and use it in GitHub Desktop.
How to setup My Mac

How to Setup Mac

  • Check Mac Deafult install
  • homebrew ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
  • Check homebrew default install
  • sudo vi /etc/shells write /bin/zsh
  • chpass -s /bin/zsh
  • Check chpass
  • npm install -g jshint
  • sudo gem install sass(gulp rubySass)

Alfred2 link

brew cask alfred link

Install on AppStore

  • Clipboard History
  • Dash

How to Setup Mac

  • Check Mac Deafult install
  • homebrew ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
  • Check homebrew default install
  • homesick sudo gem install homesick
  • homesick clone fainder/dotfiles
  • npm curl -L https://npmjs.org/install.sh | sh
  • Uninstall node.js http://www.maxwhale.com/how-to-uninstall-node-js-on-mac/
  • nodebrew http://qiita.com/sinmetal/items/154e81823f386279b33c
  • node
  • Launch Brewfile brew bundle
  • homesick symlink
  • oh-my-zsh curl -L http://install.ohmyz.sh | sh
  • sudo vi /etc/shells write /bin/zsh
  • chpass -s /bin/zsh
  • Check chpass
  • font-pacher https://github.com/Lokaltog/powerline-fontpatcher
  • install Inconsolata-dz-Powerline.otf
  • npm install -g jshint
    • npm install -g jslint
  • gulp
  • sudo gem install sass(gulp rubySass)
  • powerline-fontpatcher
  • aflred Font Awesome https://github.com/ruedap/alfred2-font-awesome-workflow
  • iTerm thayer-bright.itermcolors https://github.com/t3chnoboy/thayer-bright-iTerm
  • pem file copy

Alfred2 link

brew cask alfred link

Install ATOK

https://gate.justsystems.com/download/atok/ut/mac/at27try.dmg

Install on AppStore

  • Clipboard History
  • Dash
# Make sure using latest Homebrew
update
# Update already-installed formula
upgrade
# Add Repository
tap caskroom/cask || true
tap caskroom/versions || true
tap caskroom/fonts || true
tap telemachus/anytap || true
# Install Cask and Anytap
install brew-cask
install brew-any-tap
# Add Original Repository
tap fainder/homebrew-mycask || true
any-tap fainder crackcask https://fainder@bitbucket.org/fainder/homebrew-crackcask.git || true
# Packages
# Homebrew
install curl
install fontforge --with-python
install git
install jq
install openssl
install python
install wget
install zsh
# Casks
cask install alfred-c
cask install atom
cask install appcleaner
cask install bettertouchtool
cask install cheatsheet
cask install dropbox
cask install evernote
# cask install firefox-aurora-ja
cask install font-kibitaki
cask install google-chrome
cask install google-chrome-canary
cask install hyperswitch
cask install imageoptim
cask install iterm2-nightly
cask install karabiner
cask install kensington-trackball-works
cask install kobito
cask install onepassword-c
# cask install recordit
cask install sequel-pro
cask install sourcetree
cask install sublimetext3-c
cask install the-unarchiver
cask install toggldesktop
cask install transmit-c
cask install utorrent-beta
cask install vagrant
cask install virtualbox
cask install vlc
# Remove outdated versions
cleanup

defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder

何度go get guthub.com/motemen/ghqやっても~/.go/bin/に入らない。 エラーは以下。

go: missing Mercurial command. See http://golang.org/s/gogetcmd
package code.google.com/p/goauth2/oauth: exec: "hg": executable file not found in $PATH

MercurialをHomebrewでインストールしたら解決。

.zshenv

# golang
export GOPATH=$HOME/.go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin

.gitconfig

[ghq]
  root = ~/.ghq
  • gh-open
  • ghq
  • peco
  • pup
  • termbox
  • vagrant-global-status
  • vagrant-peco

OS X default Ruby

$ ruby -version

ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

$ gem list

*** LOCAL GEMS ***

bigdecimal (1.2.0)
CFPropertyList (2.2.8)
io-console (0.4.2)
json (1.7.7)
libxml-ruby (2.6.0)
minitest (4.3.2)
nokogiri (1.5.6)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
sqlite3 (1.3.7)
test-unit (2.0.0.0)

rbenv ruby 2.1.2

$ ruby -version

ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin14.0]

$ gem list

*** LOCAL GEMS ***

bigdecimal (1.2.4)
io-console (0.4.2)
json (1.8.1)
minitest (4.7.5)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
test-unit (2.1.2.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment