Coder Social home page Coder Social logo

dotfiles's Introduction

skelz0r dotfiles

For unix system, with vim, git, pry and tmux. Install some must-have plugins and aliases for developping with rails framework.

Requirements

Install and set zsh as your login shell.

chsh -s /bin/zsh

Recommandations

Some aliases and plugins recommand/use following programmes:

Install ag (ack-like more powerfull):

git clone https://github.com/ggreer/the_silver_searcher

Install hub (git wrapper for github):

git clone https://github.com/defunkt/hub

Install rvm (Ruby Version Manager) :

Install

Clone onto your laptop:

git clone https://github.com/blackbirdco/dotfiles.git

Install:

cd dotfiles
./install.sh

This will create symlinks for config files in your home directory. If you include the line "DO NOT EDIT BELOW THIS LINE" anywhere in a config file, it will copy that file over instead of symlinking it, and it will leave everything above that line in your local config intact.

You can safely run ./install.sh multiple times to update.

Make your own customizations

Put your customizations at the top of files, separated by "DO NOT EDIT BELOW THIS LINE."

For example, the top of your ~/.gitconfig might look like this:

[user]
  name = Loïc Delmaire
  email = [email protected]

# DO NOT EDIT BELOW THIS LINE

[color]
  diff = auto

The top of your ~/.zshrc might look like this:

# Productivity
alias todo='$EDITOR ~/.todo'

# DO NOT EDIT BELOW THIS LINE

# add the current branch name in green
git_prompt_info() {

What's in it?

zsh for default shell:

  • Add git branch to right prompt
  • Some common options and configurations extract from oh-my-zsh

vim configuration:

  • Rails.vim for enhanced navigation of Rails file structure via gf and :A (alternate), :Rextract partials, :Rinvert migrations, etc.
  • Run RSpec specs from vim.
  • Syntax highlighting for : CoffeeScript, Cucumber, Haml, Markdown, and HTML5.
  • Use Ag instead of Grep when available.
  • Use Exuberant Ctags for tab completion.
  • Use Vundle to manage plugins.

Details in vimrc.bundles for others plugins.

You can use your a local configuration in ~/.vimrc.local.

tmux configuration.

  • Set prefix to Ctrl+a (like GNU screen).

git configuration.

Shell aliases and scripts:

  • b for bundle.
  • g with no arguments is git status and with arguments acts like git.
  • m for rake db:migrate && rake db:rollback && rake db:migrate && rake db:test:prepare.
  • mcd to make a directory and change into it.
  • rake is zeus rake if using Zeus on the project in current directory.
  • rk for rake.
  • rspec is zeus rspec if using Zeus on the project in current directory.
  • tat to attach to tmux session named the same as the current directory.
  • v for $VISUAL.

pry configuration:

  • Set pry as the default ruby/rails console (pry-everywhere)
  • Add hirb for rails console

TODO

  • More tests needed

Credits

Inspired by thoughtbot's dotfiles

It is free software and may be redistributed under the terms specified in the LICENSE file.

dotfiles's People

Contributors

git-tutal avatar hugolepetit avatar skelz0r avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.