Skip to content

config files for zsh, bash, completions, gem, git, irb, rails

License

Notifications You must be signed in to change notification settings

lothbrek/dotfiles

 
 

Repository files navigation

My Dot Files

These are config files to set up a system the way I like it. They are inspired by Ryan Bate's dotfiles and Mike Cochran's dotfiles. It now uses Oh My ZSH. If you would like to see my old, custom Bash and ZSH config, check out this branch

I am running on Mac OS X, but it will likely work on Linux as well.

Installation

Run the following commands in your terminal. It will prompt you before it does anything destructive. Check out the Rakefile to see exactly what it does.

git clone git:https://github.com/ryanb/dotfiles ~/.dotfiles
cd ~/.dotfiles
rake install

After installing, open a new terminal window to see the effects.

Feel free to customize the .zshrc file to match your preference.

Features

Many of the following features are added through the "rbates" Oh My ZSH plugin.

I normally place all of my coding projects in ~/code, so this directory can easily be accessed (and tab completed) with the "c" command.

c railsca<tab>

There is also an "h" command which behaves similar, but acts on the home path.

h doc<tab>

Tab completion is also added to rake and cap commands:

rake db:mi<tab>
cap de<tab>

To speed things up, the results are cached in local .rake_tasks~ and .cap_tasks~. It is smart enough to expire the cache automatically in most cases, but you can simply remove the files to flush the cache.

If you're using git, you'll notice the current branch name shows up in the prompt while in a git repository.

There are several features enabled in Ruby's irb including history and completion. Many convenience methods are added as well such as "ri" which can be used to get inline documentation in IRB. See irbrc file for details.

Uninstall

To remove the dotfile configs, run the following commands. Be certain to double check the contents of the files before removing so you don't lose custom settings.

unlink ~/.bin
unlink ~/.gitignore
unlink ~/.gemrc
unlink ~/.gvimrc
unlink ~/.irbrc
unlink ~/.vim
unlink ~/.vimrc
rm ~/.zshrc # careful here
rm ~/.gitconfig
rm -rf ~/.dotfiles
rm -rf ~/.oh-my-zsh
chsh -s /bin/bash # change back to Bash if you want

Then open a new terminal window to see the effects.

vim-go

Using vim-go plugin(https://github.com/fatih/vim-go).

The following are features that vim-go adds to your rc, taken from the vim-go docs:

  • Build with :GoBuild, install with :GoInstall or test with :GoTest (run single tests via :GoTestFunc)
  • Show test coverage with :GoCoverage or in browser with :GoCoverageBrowser
  • Goto definition with :GoDef
  • Quick jump to declarations with :GoDecls or :GoDeclsDir
  • Show documentation with :GoDoc inside or in browser with :GoDocBrowser
  • Quickly execute your current file/files with :GoRun
  • Advanced source analysis tools utilizing guru, such as :GoImplements, :GoCallees, and :GoReferrers
  • Change or display GOPATH with :GoPath
  • Multiple 3rd linter support with :GoMetaLinter
  • Renaming identifiers with :GoRename
  • Share your code to play.golang.org with :GoPlay
  • Switch between *.go and *_test.go code with :GoAlternate Add/Remove tags on struct fields with :GoAddTags Add import paths via :GoImport or remove them with :GoDrop
  • Custom vim text objects such as a function (af) or inner function (if)
  • ... and many more! Please see doc/vim-go.txt for more information.

vim-go resource

Learning resource located at https://github.com/fatih/vim-go-tutorial

About

config files for zsh, bash, completions, gem, git, irb, rails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 41.3%
  • Vim Script 31.0%
  • Ruby 24.7%
  • HTML 3.0%