Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

briangershon/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

These are Brian Gershon's personal dotfiles for Linux and OSX.

Installation

The latest are at http://github.com/briangershon/dotfiles

For Linux:

For OSX:

  • I manually symlink the following files/folders into ~ with a . prefix: vim, vimrc, tmux.conf, bash_profile, bash_rc, gitconfig, rspec . For example ln -s ~/dotfiles/vim .vim

  • I install MacVim via http://code.google.com/p/macvim/#Download and copy mvim shell helper into /usr/local/bin and then symlink vim to mvim so that Vim can be opened up in either GUI or terminal mode. Since I'm using a newer python from Homebrew, I have to setup an alias via my .bashrc so the YouCompleteMe Vim bundle works ok without a "Python quit unexpectedly" error:

    alias vim="DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib vim"

    alias mvim="DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib mvim"

  • brew install the_silver_searcher for use Ag in CtrlP Vim plugin.

  • brew install reattach-to-user-namespace for tmux and OSX Yosemite support

Then:

Custom bash scripts related to a specific machine or that are private can be placed in ./bashrc_private folder.

You need a global install of node and npm for "tern" Vim plugin. brew install node

On first install of Vim, run vim/sync-bundles.sh to bring down all the bundles.

Then compile dependencies for YouCompleteMe bundle.

Since I'm using a new python installed from Homebrew, I need to compile YouCompleteMe under the system Python. Plus add a line in .vimrc to point to the correct version of Python for YouCompleteMe to avoid "The ycmd server SHUT DOWN" errors: let g:ycm_path_to_python_interpreter = '/usr/bin/python'

cd ~/.vim/bundle/YouCompleteMe

cmake -G "Unix Makefiles" -DPYTHON_LIBRARY=/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib -DPYTHON_INCLUDE_DIR=/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Headers . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp

./install.sh

Inspirations