Code Monkey home page Code Monkey logo

dotfiles's Introduction

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

dotfiles's People

Contributors

briangershon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

budlight

dotfiles's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.