Commit graph

188 commits

Author SHA1 Message Date
Robert Speicher
8aecd1f2ef Allow stylesheets to autocomplete hyphenated words 2014-07-20 19:43:25 -04:00
Sean Doyle
3cb5ef5ccb Adds vim-ruby back to vimrc.bundles
Removal in deb7ee5948
was accidental.

Also, removes `vim/bundle` directory as it is no longer useful to us, since
`vundle` creates it when it needs to.
2014-06-26 14:26:52 -04:00
Joe Ferris
d8003e654e Set Vim's colorcolumn to 80 characters
* We have an 80 character formatting limit
* This makes it obvious where that limit is
2014-06-20 16:55:28 -07:00
Greg Lazarev
49efda0d37 Add Shift+Tab map for tab complete in insert mode
Feature parity with `<c-p>` `<c-n>` tab completion duo.
2014-06-20 10:38:18 -07:00
Dustan Kasten
7c4a093ef6 tat: create tmux session if nonexistent 2014-06-16 10:20:16 -07:00
Jessie A. Young
b9d24c014a Remove Zeus and Cucumber references
* Spring is now built in to Rails:
  http://weblog.rubyonrails.org/2014/4/8/Rails-4-1/
* Haven't used Cucumber on a project in over a year
2014-06-06 16:01:37 -04:00
Rich Rines
0b5eca112a Remove test:prepare from migrate alias
* `rake db:test:prepare` has been depreciated in rails 4.1
2014-05-28 10:20:15 -07:00
Derek Prior
d8465b8c79 Have Syntastic ignore angular attribute warnings
The Syntastic HTML linter will warn on propriety attributes. The
likelihood that you *accidentally* typed "ng-repeat" is low. Let's just
assume you know what you're doing and ignore warnings about "ng-*"
attributes.
2014-05-15 11:40:18 -04:00
Dan Croak
7dbc8f44a1 Show only basename and git branch in prompt
* Switch order from "[git branch][pathname]" to "basename git branch %".
* Remove noisy brackets.

Example old:

    [master][~/dev/thoughtbot/dotfiles]

Example new:

    dotfiles dc-prompt %
2014-04-30 14:06:20 -07:00
Dan Croak
397155648d Fix out of date README on rake, rspec commands
`rake` and `rspec` commands that wrapped `zeus` were removed in 00dbd15.
2014-04-29 23:21:55 -07:00
Dan Croak
5f02a1d93d Run commands interactively from vim
This allows us to do things like:

    <Leader>r migrate
2014-04-25 14:49:37 -07:00
Derek Prior
0d749cad83 Enable shiftround
With `shiftround` enabled, using `>>` will indent the line to the next
multiple of `shiftwidth`. This is useful when you are indenting
improperly indented code.
2014-04-25 14:45:54 -07:00
Derek Prior
98a9a87557 Add vim-mkdir
`:e some/non_existent_directory/new_file.txt` usually errors out because
the directory does not exist, but with `vim-mkdir` the non-existent
directory will be created automatically.
2014-04-25 14:38:02 -07:00
Joe Ferris
6d0ea824f4 Automatically prune remote branches when fetching
* Removes the need to occasionally run `git remote prune`.
* Remove branches when fetching instead of deleting other branches.

https://trello.com/c/ePlghTll/249-configure-git-to-prune-on-fetch
2014-04-21 10:25:20 -04:00
Derek Prior
a2fdd16d01 Remove trailing whitespace in gitmessage 2014-04-18 17:16:37 -04:00
Derek Prior
00dbd15af6 Remove functions wrapping Zeus
Project should be moving over to spring, as this is the 'blessed'
approach and is part of suspenders. Leaving these functions around adds
yet another layer of indirection to consider when trying to run these
commands:

* function wrapper
* binstub
* rbenv shim
* actual binary
2014-04-18 17:06:22 -04:00
Geoff Harcourt
8c77a89bc3 Personal files take precedence over stock files
* First directory listed in .rcrc takes precedence
* We want local config to override general config
2014-04-10 09:57:04 -04:00
Joe Ferris
763b90d436 Remove RSpec -- profile option
* This option adds a lot of noise to test output
* Extra noise often means scrolling
* The profile includes red, which makes me think tests fail
* Profiling isn't useful when running one or a few tests
* I'm usually not in the mindset of profile tests, so I ignore it
2014-04-09 13:50:31 -04:00
Greg Lazarev
f3a3db2bd9 Add syntax highliting for slim via vim-slim
We are using slim more and more on projects.
2014-04-09 10:22:54 -07:00
Greg Lazarev
1ccc110a61 Improve zsh history
* "to the $HISTFILE incrementally (as soon as they are entered), rather than
  waiting until the shell exits"
* replace any duplicate in the history, not just the previous duplicate: allows
  for a cleaner history
* `.zhistory` is more idiomatic than `.zsh_history`
2014-04-09 10:07:23 -07:00
Greg Lazarev
ee3f437c74 Remove gi and giv aliases
Often mistyping things like `gi tst` causes `gi` alias to trigger the install of
the `tst` gem. This is quite annoying and too close to `git` command which we
run much more often than `gem install`. With bundler we should almost never run
`gem install`.
2014-04-04 22:35:50 -07:00
Joe Ferris
c0284de226 Use default 'complete' Vim setting
Default setting is `.,w,b,u,t,i`:

* `.`: scan the current buffer ('wrapscan' is ignored)
* `w`: scan buffers from other windows
* `b`: scan other loaded buffers that are in the buffer list
* `u`: scan the unloaded buffers that are in the buffer list
* `t`: tag completion
* `i`: scan current and included files

The default setting is more likely to find a useful match, and modern
machines can search many open and unloaded buffers without pausing.
2014-04-03 11:52:04 -04:00
Joe Ferris
aade91ee6f Don't attempt to autocorrect spelling
This frequently catches false positives for aliases, particularly for
subcommands. It also takes just as long to look at the autocorrect
prompt and select "y" as it does to just retype the command yourself.
2014-04-03 11:51:28 -04:00
Joe Ferris
62a2b5eb8f Also look for dotfiles-local
While trying out the approach outlined in Croaky's latest [blog post], I
realized that running `rcup` would not also pull updates from my local
extensions. If you clone your extensions as `dotfiles-local`, this
update will pick them up.

Non-existent directories are ignored by rcup, so it won't cause issues
if you don't have `dotfiles-local`.

[blog post]: http://robots.thoughtbot.com/manage-team-and-personal-dotfiles-together-with-rcm
2014-04-02 11:25:38 -04:00
Greg Lazarev
69b0edc174 Remove leftover snippets variable 2014-03-28 07:27:40 -07:00
Greg Lazarev
7007a86bce Combine zlogin settings into zshrc
* easier when everything is just one file
* most (if not all) interactive shells are login shells and we likely want those
  settings for interactive shells
2014-03-27 22:59:07 -07:00
Gabe Berke-Williams
71fbbc21d2 Don't set $EYRC
We don't use Engine Yard anymore.
2014-03-27 17:09:18 -04:00
Nils Petersohn
68689ec58b Add HISTFILE to save zsh history
History file needs to be specified or otherwise the history would not be saved
over multiple terminal sessions.
[Source](http://zsh.sourceforge.net/FAQ/zshfaq03.html#321)
2014-03-21 15:27:14 -07:00
Joe Ferris
fefd1d4509 Only set nocompatible once as early as possible
* Setting nocompatible has side effects
* Setting it again (even if set) repeats side effects
* Settings like ruler will be reset if set again
2014-03-19 15:05:30 -04:00
Dan Croak
1d590d78aa Exclude Brewfile
It is project-specific, not intended for machine configuration.
2014-03-14 14:01:42 -07:00
Ian C. Anderson
830add127d Switch to a vim-matchit repo that exists
- tsaleh deleted his mirror
- switch to vim-scripts version
2014-03-13 11:46:58 -04:00
aaron
c7255d3b92 Add extra option for base pane index for tmuxinator 2014-03-07 16:11:47 -08:00
Garland William Binns III
bf82a62343 Update to ensure user's working folder is correct for subsequent actions. 2014-03-07 15:58:10 -08:00
Garland William Binns III
71a88a265c Added syntactical clarity to instruction to change directory. 2014-03-07 15:58:09 -08:00
Garland William Binns III
fd5732345c Resolves #216 - adds note about ensuring user is in Clone/Fork root before 'brew bundle' is run. 2014-03-07 15:58:09 -08:00
Sean O'Hara
cc1a29fab2 Use local zlogin config if present 2014-02-15 11:58:11 -08:00
Dan Croak
18e0926a07 Don't assume location of zsh 2014-02-07 23:30:11 -08:00
Matthew Sumner
2915cf1f69 changes 'brew tap thoughtbot/rcm' to 'brew tap thoughtbot/formulae' 2014-02-02 14:56:26 -07:00
Adarsh Pandit
6f48e8cd36 Update copyright to 2014 2014-01-27 01:13:49 -08:00
Gabe Berke-Williams
4cdd718c4c Add psqlrc 2014-01-24 23:15:38 -05:00
Derek Prior
294f962f95 Complete parity commands like heroku
Adds tab completiong to `production` and `staging` which acts as tab
completion to heroku.
2014-01-23 18:35:34 -05:00
Dan Croak
31b99d9728 Add rbenv shims and trusted binstubs to PATH
Our expected way of managing Rubies is with rbenv:

https://github.com/thoughtbot/laptop/blob/master/common-components/ruby-environment

This commit loads rbenv in `zshrc` as recommended by the rbenv docs:

https://github.com/sstephenson/rbenv#basic-github-checkout

Assuming the binstubs for a project are in the local bin/ directory, we
can even go a step further to add the directory to shell $PATH so that
rspec can be invoked without the bin/ prefix:

    export PATH="./bin:$PATH"

Doing so on a system that other people have write access to (such as a
shared host) is a security risk:

https://github.com/sstephenson/rbenv/issues/309

The `.git/safe` convention addresses the security problem:

https://twitter.com/tpope/status/165631968996900865

This zsh fix may be necessary for OS users in order to fix a bug:

https://github.com/thoughtbot/laptop/blob/master/mac-components/zsh-fix
2014-01-23 14:22:51 -08:00
Dan Croak
e0200f0019 Use thoughtbot/rcm in Brewfile 2014-01-10 17:35:48 -08:00
Gabe Berke-Williams
5920168f02 Correctly link to rcm in README 2014-01-10 16:16:26 -05:00
Gabe Berke-Williams
dbcf831f0f Use Brewfile 2014-01-10 16:05:21 -05:00
Greg Lazarev
dd75d58dbf Cleanup zshrc
* remove duplicates with zlogin
* order by functions first, then bindings, then exports
* lowercase `setopt` arguments for consistency with `setopt` output
2013-12-26 12:58:01 -08:00
Mike Burns
3acd933e68
Always update from vundle
Previously, the after-up hook would only do a `:BundleInstall` when
installing vundle for the first time. This is inconsistent with the
pre-rcm process, and also less convenient.
2013-12-05 10:27:16 +01:00
Mike Burns
3bc2a98a1b Use rcm instead of ./install.sh
The rcm suite is designed to replace the `./install.sh` script found in
this and many other dotfiles repos across GitHub. By using rcm users can
combine multiple dotfiles repos, tag dotfiles, have host-specific
dotfiles, and other powerful features.

This commit removes `install.sh`, updates the README, adds a post-up
hook that vundles the vim bundles, and adds a `rcrc` configuration that
ignores `README.md` and `LICENSE` and sets the dotfiles directory to
just `dotfiles`.
2013-12-05 10:17:12 +01:00
Andrew Toelle
4f65f7927c skip linking LICENSE file during install 2013-11-30 19:11:31 -06:00
Joe Ferris
7773e539f1 Only try to install vundle if it's not installed
Prevents error on re-running ./install.sh:

    fatal: destination path '~/.vim/bundle/vundle' already exists and is
    not an empty directory.

https://github.com/thoughtbot/dotfiles/issues/195
2013-11-28 12:03:34 -08:00