Dotfiles for by Devschool's online coding bootcamp
Check out these awesome ruby and rails screencasts! There is 1 15 minute cast released every week as well as either a 2 Minute Ruby or a 2 Minute Rails screencast!
I have a confession to make. I am a thief. I steal great ideas and source code and make it my own. Want to know who I have been influenced by and stolen from? Check out my extensive thank you in my ruby manifesto.
My philosophy is this, test, integrate, extend. And to me, workflow is essential. Therefore I am always on the look out for better tools and workflows and my dotfiles are an extension of that.
The following "dot" files are included.
- ackrc
- gemrc
- gitignore
- vimrc
- zlogin (empty)
- zshrc
This script assumes you are running a mac. It will set up the following if you have not already installed it:
Knowing what directory you are in is vital. Knowing what git branch you are in is just_as_important!
Your prompt will look like this when you are in a git directory and the tree is clean:
It will look like this when your tree is dirty
Uninstall RVM and rbenv. Do it now cavewomen and cavemen. This will install chruby with is much_better. It doesn't mess with your paths and I added some yummy goodness... Check out the link to chruby above to see why.
This setup includes an alias for bundling gems with binstubs (no bundle exec crap) in the local directory you are in. It will automatically be at the front of your path, so cd into your ruby app with a gemfile, then.....
b
Fetching gem metadata from https://rubygems.org/. ........
Fetching version metadata from https://rubygems.org/..
.....
Yes, you bundle by just typing b... did I mention I am a lazy bastard?
Want to see your aliases? In any unix based system just type alias and it will print them out. With this you get even more access!!!
When you type aliases and hit return it opens you aliases in vim!
Vim is configured to actually be useful here, and without installing bloated things like janus that will run slow as mucky muck. fuck the mucky muck.
Even cooler is when you want to edit your vimrc file you just type ,v in vim and it will open it. Close your vimrc with a write and it will reload it in vim!
Installation is easy. Clone, cd, rake, profit.
cd && git clone https://github.com/thatrubylove/dotfiles.git && cd ~/dotfiles && rake
You need to go into your gitconfig
file and under [user]
change your name
and email
. Then go down to bottom of file, and change your [github]
username to reflect your GitHub user name.