No description, website, or topics provided.
Ruby Shell Vim script
Switch branches/tags
Nothing to show
Latest commit 7c9c45b Mar 30, 2017 @neerajdotname wip
Permalink
Failed to load latest commit information.
bash
catchall
docs
scripts
shared
.gitignore
README.md
ackrc
bash_profile
bashrc
gemrc
gvimrc
gvimrc.before
sdirs
vimrc.after

README.md

This README describes how I setup a new mac

xcode

Installing xcode from the app store takes a while. So go to app store and start installing xcode.

Dropbox

Install drobox app. Do not sync all the files since that might take a while. Start with syncing only dotfiles folder.

Setup theme on terminal app

For terminal app I use "dark theme" of https://github.com/noahfrederick/Hemisu-Terminal-app .

Read here to see how to install a new theme for Terminal.

After downloading I made following changes

  • Change font family to "monaco".
  • Incresed font size to 16.

Install homebrew

Visit http://brew.sh to see the instructions about how to install homebrew.

brew install tree
brew install hub
brew install ack
brew install wget
brew install node
brew install imagemagick
brew install macvim

# coffee command is needed by vim to compile and show error for
# coffeescript code
npm install -g coffee-script
npm install -g eslint
npm install -g eslint babel-eslint
eslint -v # view version and confirm that eslint is properly working

Setting up bash_profile and bashrc

ln -s ~/Dropbox/dotfiles/bash_profile ~/.bash_profile
ln -s ~/Dropbox/dotfiles/bashrc ~/.bashrc
ln -s ~/Dropbox/dotfiles/ackrc ~/.ackrc

Setup bashmarks

mkdir -p  ~/code/scratch
cd ~/code/scratch
git clone git://github.com/huyng/bashmarks.git
cd bashmarks
make install
rm ~/.sdirs
ln -s ~/Dropbox/dotfiles/sdirs ~/.sdirs

Installing janus

Janus is a vim distribution I use.

rm -rf ~/.vim
rm -rf ~/.janus

ln -s /Users/neerajsingh/Dropbox/dotfiles/gvimrc.before ~/.gvimrc.before
ln -s /Users/neerajsingh/Dropbox/dotfiles/vimrc.after ~/.vimrc.after

curl -L https://bit.ly/janus-bootstrap | bash

cd ~/.vim/janus/vim/tools && git clone https://github.com/bling/vim-airline
cd ~/.vim/janus/vim/tools && git clone git@github.com:neerajdotname/vim-react-snippets.git

Updating janus

cd ~/.vim
rake

Setting up hemisu theme

I use hemisu theme for vim.

cd ~/.vim/janus/vim/colors
git clone https://github.com/noahfrederick/vim-hemisu
mv vim-hemisu/ hemisu

Setting up git

git config --global alias.co checkout
git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto
git config --global branch.autosetuprebase always
git config --global push.default current
git config --global user.name "Neeraj Singh"
git config --global user.email neeraj@bigbinary.com

# Typicall when I merge master into production git opens editor for me to type merge message.
# Personally I do not want git to ask me to enter anything when I am merging a branch into another.
# Following code is to silence git.
git config --global core.mergeoptions --no-edit

rbenv

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
git clone https://github.com/sstephenson/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars
rbenv install 2.2.3
rbenv global 2.2.3
ln -s /Users/nsingh/Dropbox/dotfiles/gemrc ~/.gemrc

Installing PostgreSQL database

http://postgresapp.com is the easiest way to get started with postgresql server.

brew install postgres
brew tap homebrew/services

To have launchd start postgresql now and restart at login:
  brew services start postgresql
Or, if you don't want/need a background service you can just run:
  pg_ctl -D /usr/local/var/postgres start

Setup tiny_scripts

https://github.com/bigbinary/tiny_scripts

Setting up git command line completion

curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash