When I buy a new Mac, I want to do a clean install without copying the environment (somehow) Note that I do the same thing every time
menu> system preferences > Trackpad
The cursor is light and fast!
* Click: Light
* Tracking Speed: fast
Assign English-kana switching to the Command button
⌘ English: https://ei-kana.appspot.com/
menu> system preferences > Keyboard
The key is light and fast!
* KeyRepeat: Fast
* Delay Until Repeat: short
menu> system preferences > Keyboard > Modifier Keys
Swap Ctrl and Caps Lock
defaults write com.apple.finder AppleShowAllFiles -boolean true #Hidden file display
defaults write -g ApplePressAndHoldEnabled -bool false
alias ll='ls -Gla'
alias ls='ls -G'
export LSCOLORS=gxfxcxdxbxegedabagacad
Finder restart
killall Finder
1.homebrew http://brew.sh/index_ja.html xcode Command Line Tools is automatically installed
2.anyenv ** Env related items are summarized in anyenv
git clone https://github.com/riywo/anyenv ~/.anyenv
echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(anyenv init -)"' >> ~/.bash_profile
exec $SHELL -l
rbenv, pyenv, ndenv
anyenv install rbenv
anyenv install pyenv
anyenv install ndenv
exec $SHELL -l
ruby
Installable version rbenv install-l
rbenv install 2.3.3
rbenv install 2.3.1 #If necessary
rbenv global 2.3.3
rbenv local 2.3.1 # If necessary
rbenv rehash
rbenv exec gem install bundler -v 1.13.6
node
Installable version ndenv install-l
ndenv install v6.9.4
ndenv global v6.9.4
ndenv rehash
python
python uses anaconda
pyenv install anaconda3-4.2.0
After all I also use python3
pyenv install 3.5.3
pyenv global anaconda3-4.2.0
pyenv rehash
#Set with conda
# Python 3.5
$ conda create -n tensorflow python=3.5
##list of conda environment
conda info -e
# conda environments:
#
tensorflow /Users/k/.anyenv/envs/pyenv/versions/anaconda3-4.2.0/envs/tensorflow
root * /Users/k/.anyenv/envs/pyenv/versions/anaconda3-4.2.0
#conda environment switching
#Specify with full path because pyenv is used
source /Users/k/.anyenv/envs/pyenv/versions/anaconda3-4.2.0/envs/tensorflow/bin/activate tensorflow
#Exit the environment
source deactivate
4.mySQL
brew install mysql
mysql.server start
create user 'foo'@'localhost' identified by 'bar-password'
5.emacs
Assign the meta key to option in the terminal settings
terminal > Preferences > keyboard
'Use Option as Meta Key'On
brew install emacs --with-cocoa --srgb
brew linkapps emacs
brew install the_silver_searcher
brew install cask
#Note: evil is used
git clone https://github.com/kanadai/emacs.d.git ~/.emacs.d
cd .emacs.d
cask
6.vim
git clone https://github.com/kanadai/dotfiles.git
ln -s dotfiles/.vimrc .vimrc
mkdir -p ~/.vim/bundle
#Get NeoBundle from repository
$ git clone git://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
Sourcetree: https://ja.atlassian.com/software/sourcetree SequelPro: https://sequelpro.com/ vscode: https://code.visualstudio.com/ googleDrive: https://www.google.com/intl/ja_ALL/drive/download/ dropbox: https://www.dropbox.com/ja/ liceCap: http://www.cockos.com/licecap/
mecab
brew install mecab
brew install mecab-ipadic
pyenv-virtualenv
brew install pyenv-virtualenv
python -m venv environment name
source myvirtualenv/foodtasker/bin/activate
pip install django==1.10
pip freeze
django-admin startproject name
python manage.py runserver
...etc.
Recommended Posts