Skip to content
/ dotfiles Public
forked from ravasthi/dotfiles

bash, oh my zsh, git, rails, TextMate, Homebrew, more...

Notifications You must be signed in to change notification settings

vydra/dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Richa’s dotfiles

These are the command-line setup and configuration files I use for all my computers, stored on Github for easier sharing between computers and with other people.

Credits

Prerequisites

These dotfiles assume a Mac with the Xcode command line tools, rvm or rbenv, and Homebrew with the bash, bash-completion and git brews installed. See Shell support for details. In addition, the highline gem is required to run the installation script.

What’s in the box

Shell support

These dotfiles support both bash and oh my zsh.

Some features of the bashrc may work only with bash version 4.2 and greater with bash-completion, which is not installed by default on the Mac. Consider using these steps to get it:

  • brew install bash bash-completion
  • Add /usr/local/bin/bash to /etc/shells
  • Change your shell to /usr/local/bin/bash by running chsh

For oh my zsh setup, do the following:

Command-line goodness

  • Shell configuration includes a supercharged prompt for both bash and zsh with ruby and git information, with help from the zsh-git-prompt and bash-git-prompt plugins. To tweak, change the configuration in git-prompt-colors.sh for bash and oh-my-zsh-custom/themes/richa.zsh-theme for zsh.

    fancy prompt!
  • vi command mode is enabled by default in both bash and zsh. To switch back to the default emacs mode, remove the set -o vi line in bashrc and the vi-mode plugin from zshrc.

Editors

  • Vim configuration with support for selected plugins, with plugin management by Vundle. To use:

    • git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
    • If desired, tweak the font and color scheme settings. The default color scheme is PaperColor. The default font is Espresso Mono, a variant of DejaVu Sans Mono.
    • Start vim
    • Run PluginInstall in command mode.
  • An edit shim will launch mate (TextMate) if you are on your local Mac, and fall back to vi if you are logged in via ssh. This shim is used as the git editor and svn editor.

  • The mp script (short for "(Text)Mate project") opens a directory in TextMate. But unlike the basic mate command, if the directory does not already have a .tm_properties, a basic one will be created.

Please note that the TextMate features of these dotfiles are for TextMate 2, currently in beta.

Ruby stuff

An r command serves as a shortcut for running bundle exec rake or bundle exec rails. It's pretty smart, so r s will expand to bundle exec rails server, and r db will expand to bundle exec rake db:console. No more fat-finger mistakes of rails vs rake!

Other goodies

  • This repo also comes with tmux configuration, for you terminal purists. To use:

    • brew install tmux
    • brew install reattach-to-user-namespace
  • Multi-monitor window management setup files are available for Hammerspoon:

    • Download and install the latest release
    • Tweak the configuration in hammerspoon/init.lua as you like

Installation

  1. Install the highline gem:

     gem install highline
    
  2. Choose a place to store the dotfiles, like ~/Library/dotfiles.

    git clone git://github.com/ravasthi/dotfiles ~/Library/dotfiles
    cd ~/Library/dotfiles
    git submodule init
    git submodule update
    rake install
    

About

bash, oh my zsh, git, rails, TextMate, Homebrew, more...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 57.8%
  • Lua 24.7%
  • Vim Script 8.6%
  • Ruby 7.3%
  • HTML 1.6%