Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active May 9, 2019 06:11
Show Gist options
  • Save mamemomonga/3a6d8547b689b7ce0d1135af440a6abc to your computer and use it in GitHub Desktop.
Save mamemomonga/3a6d8547b689b7ce0d1135af440a6abc to your computer and use it in GitHub Desktop.
OSXにいれておくべきものメモ ターミナル編

macOSにいれておくべきものメモ ターミナル編

基本設定

vim, curl, git, zsh とかはEl Capitanに入っているのを使う。

Xcode

$ xcode-select --install

なにか起動したとき「Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.」と表示された場合は、ライセンスに同意する必要がある。

$ sudo xcodebuild -license

HomeBrew

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

Ruby

brew install rbenv ruby-build
echo 'if which rbenv > /dev/null; then eval "$(rbenv init - )"; fi' >> ~/.zshrc
source ~/.zshrc
rbenv install -l | less
rbenv install -l | grep '2.3'
rbenv install 2.3.1
rbenv global 2.3.1
rbenv rehash
ruby -v

bundler

gem install bundler

gist

gem install gist

sass,compass

gem install sass compass

Python

brew install pyenv
echo 'if which pyenv > /dev/null; then eval "$(pyenv init - )"; fi' >> ~/.zshrc
source ~/.zshrc
pyenv install -l | less
pyenv install -l | grep '2.7'
pyenv install 2.7.11
pyenv global 2.7.11
pyenv rehash
python -V
pip install --upgrade pip

PyYAML(yaml)

pip install PyYAML

Fabric(fab)

pip install Fabric

Perl

brew install plenv perl-build
echo 'if which plenv > /dev/null; then eval "$(plenv init - zsh)"; fi' >> ~/.zshrc
source ~/.zshrc
plenv install -l | less
plenv install -l | grep '5.'
plenv install 5.24.0
plenv global 5.24.0
plenv rehash
perl -v
plenv install-cpanm

よく使うモジュール

cpanm Carton Mojolicious Math::Random::MT IO::All YAML::XS JSON::XS Moo
plenv rehash

mojo とか carton などを入れた後は plenv rehash を忘れずに

node.js

echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> .zshrc
source ~/.zshrc
mkdir -p $HOME/.nodebrew/src
nodebrew install-binary stable
nodebrew use stable
node -v
npm -v

アプリケーション

tmux

brew install tmux
brew install reattach-to-user-namespace

mobile-shell(mosh)

brew install mobile-shell

wget

brew install wget

cdrtools(mkisofs)

brew install cdrtools

p7zip(7za)

brew install p7zip

GoLang(go)

brew install golang

lv

brew install lv

pandoc pandocユーザガイド

brew install pandoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment