第一次使用Mac Book,记录于此。
1, 需要按照xcode
xcode 4.2以上的需要安装 command line xxx
打开 xcode -> open develop tools -> more xxxx
2, 将 /Applications/Xcode.app/Contents/Developer/usr/bin
放到 $PATH
修改 ~/.bash_profile 文件
export PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH
然后运行
source ~/.bash_profile
source ~/.bashrc
3, 查看path的命令
printenv PATH | tr ":" "\n"
4,使用rvm安装Rails
5, 安装 Homebrew
使用vundle安装vim的配置文件
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
" ...
Bundle 'blackboard.vim'
Bundle 'ZenCoding.vim'
Bundle 'scrooloose/nerdtree'
nmap <F2> :NERDTreeToggle <CR>
Bundle "snipMate"
Bundle 'vim-ruby/vim-ruby'
Bundle 'ctags.vim'
brew 安装 rails
- installed mysql with
brew install mysql
-
ran the commands brew suggested:
unset TMPDIR mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
-
Start mysql with
mysql.server
command, to be able to log on it -
Used the alternate security script:
/usr/local/Cellar/mysql/5.5.10/bin/mysql_secure_installation
mysql管理工具 http://www.sequelpro.com
mac上可以安装的软件
- The Unarchiver: like WinRAR
- FreeMemory: to watch your memory usage and cleanup
- Appcleaner: for uninstall apps
- Wunderlist: a TODO
- Kindle:
- Evernote
- Dropbox
- Mindnode