Commit graph

445 commits

Author SHA1 Message Date
Geoff Harcourt
e729b1deb3 Update ALE location on Github
ALE has moved to an organization, so the old repository location gets
redirected.
2019-08-20 14:23:43 -04:00
Geoff Harcourt
107bf0b17d Remove vim-coffeescript from default plugins
With the popularity of Babel and ES6, it seems like Coffeescript is no
longer a standard, frequently-used part of the thoughtbot toolset. This
change removes the vim-coffeescript plugin from our default set. Users
who want to retain it can add it back to their `vimrc.bundles.local`.
2019-07-22 08:41:56 -04:00
Daniel Barber
57e23e0e67 Dirname is clearer here 2019-07-17 17:53:22 -04:00
Daniel Barber
52ee922459 Use the location of brew to determine where asdf is 2019-07-17 17:40:42 -04:00
Daniel Barber
dbbae5752b brew --prefix will return something whether ASDF is installed or not
So we should check that the file exists before we try calling it.
2019-07-17 10:09:26 -04:00
Daniel Barber
cdd0d2ced8 Assume people don't change their Homebrew dir
It checks the home directory location and the default Homebrew location
before falling back to `brew --prefix` (Sloooow!)

This also accounts for non macOS systems that don't have Homebrew.
2019-07-17 10:09:26 -04:00
Daniel Barber
2af1b50124 Account for asdf being installed by Homebrew
If `asdf` has been installed via Homebrew the completions file is in a
different place. This PR takes that possibility into account.
2019-07-17 10:09:26 -04:00
Robert Speicher
b1356a9d00 Use tmux 1.9+ syntax for status styling (#635)
As of tmux 1.9, the `-bg`, `-fg`, and `-attr` options were condensed
into a single `-style` option, which takes a comma-separated list of
options.

In tmux 2.9, the old options were fully removed.

See https://git.io/fjR7c for more information.
2019-06-18 09:57:12 +01:00
Mike Burns
6c8205bad4
Make Homebrew analytics opt-in
Currently [Homebrew implements analytics] as opt-out, forcing it on its
users without their enthusiastic consent or a full understanding of the
implications.

This changes it to opt-in: we opt-out by default, and to opt in to
Homebrew analytics we can override it in `~/.zshrc.local`:

```sh
unset HOMEBREW_NO_ANALYTICS
```

[Homebrew implements analytics]: https://docs.brew.sh/Analytics
2019-05-03 10:45:53 -04:00
Roman Frołow
dbb2a3dc51 Use tmux has-session 2019-02-25 20:33:13 -05:00
Benjamin Eskola
46af61168b Make _load_settings() more concise
- Use the `~` glob operator to exclude *.zwc insead of a separate test
  (requires `setopt extendedglob`).
- Exclude both `pre` and `post` in one case alternative.
2019-01-21 20:25:14 -05:00
RJ Dellecese
42c8204e6c Allow easy disabling of all ALE configs
Set `updatetime` option and `g:ale_lint_on_text_changed` variable in an Vim startup autocommand so that they won't be set when the user disables the `ale` augroup (with something like `silent! augroup! ale` or `augroup \ autocmd! \ augroup END`) in their local vimrc.

This allows users to use ALE with its default linting settings without needing to manually `unlet` the `updatetime` option and `g:ale_lint_on_text_changed` variable also.
2019-01-21 20:22:25 -05:00
Carles Jove i Buxeda
a4da3e4523 Add UTF-8 encoding
I started getting errors after a recent Vim upgrade because of line:

`set list listchars=tab:»·,trail:·,nbsp:·`

Adding UTF-8 encoding fixes it.

```text
:h encoding

NOTE: For GTK+ 2 or later, it is highly recommended to set 'encoding'
        to "utf-8".  Although care has been taken to allow different values of
        'encoding', "utf-8" is the natural choice for the environment and
        avoids unnecessary conversion overhead.  "utf-8" has not been made
        the default to prevent different behavior of the GUI and terminal
        versions, and to avoid changing the encoding of newly created files
        without your knowledge (in case 'fileencodings' is empty).
```
2019-01-21 20:17:32 -05:00
Rodrigo Bermúdez Schettino
8a63372e57 README: Mention excluded README-ES
Mention README-ES.md in section of excludes, which is already mentioned in the spanish version of the README (README-ES.md).
2019-01-21 16:10:56 -05:00
Rodrigo Bermúdez Schettino
3fc51be897 README-ES: Improve translation in heading
Add missing question mark and improve existing translation.
2019-01-21 16:10:28 -05:00
Andy Waite
f00e803052 Clarify ctags mapping
`vim/plugin/ctags.vim` shells out to ctags, but this could be Universal
Ctags (see #605).
2018-12-30 20:34:39 -05:00
Ian C. Anderson
2bbb3518f9 Update README-ES.md to use command -v for consistency 2018-12-27 14:01:59 -05:00
Ian C. Anderson
005324f802 Use command -v instead of which
https://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script/677212#677212
2018-12-27 14:01:59 -05:00
Ian C. Anderson
b132c644be Use rg if it's present in bin/replace
I like this `bin/replace` script, but I've recently switched from `ag`
to [ripgrep](https://github.com/BurntSushi/ripgrep). This checks for the
presence of `rg` and uses it in `bin/replace`, passing the correct
parameter to disable colors.
2018-12-27 14:01:59 -05:00
Geoff Harcourt
013f9711af Move from agignore to gitignore
Per @andyw8 in #588:
https://github.com/ggreer/the_silver_searcher/wiki/Advanced-Usage

`agignore` is now deprecated as the place to declare ignored files for
search. We'll put these files into `gitignore` rather than `ignore` so
that we have consistently ignored files between ag, git, etc.

Recommended by @croaky:
bcfa239b31

Close #588
2018-12-16 14:06:13 -05:00
Jared Smith
80972c9b6e Replace ale#lint with ale#queue - ale#lint no longer supported (#615) 2018-10-31 10:56:28 -04:00
Ashwin Vidiyala
695d92f50e Isolate ALE settings into its own augroup 2018-10-01 21:27:00 -04:00
Stephen Hanson
319f1284f9 Set vim syntax for local dotfiles overrides 2018-10-01 20:17:46 -05:00
Jared Smith
88d70fcd12 Fix vim ctag plugin 2018-08-26 21:28:08 -04:00
Jared Smith
51669fc552 Add universal ctags config support 2018-08-26 21:22:41 -04:00
Geoff Harcourt
2b58323de6 Use gitcommit syntax for Github pull requests
This change leverages the existing `gitcommit` syntax rules to apply the
same formatting and highlighting settings to pull request messages when
they are edited from Vim.
2018-07-15 15:50:48 -04:00
Brett MacDonald
d69b67004e Improve successive startup time; fix conflict.
- Don't update completion dump if it has been updated within 24hrs.
- Unload Completion for zsh bundled function mcd to prevent conflict. #594
2018-07-15 15:49:04 -04:00
Geoff Harcourt
ee30830241 Remove no-longer functional git-pr script
The Github `hub` utilty has added a `pr` subcommand, which takes
precedence over `git-pr` in execution order, so this script is no longer
accessible with `git pr` or `hub pr`.
2018-07-13 16:03:07 -04:00
Daniel Colson
6e1c567653
Merge pull request #598 from sublimecoder/master
Change ctag git hook to use universal-ctags tag-relative syntax
2018-06-22 14:17:34 -04:00
Jared Smith
5489e166ee Change ctag git hook to use universal-ctags tag-relative syntax 2018-06-13 00:59:34 -07:00
Derek Prior
21055dff63
Appraisal file is supported by vim-ruby
See: 04fabcc1d5/ftdetect/ruby_extra.vim (L12)
2018-02-25 21:57:42 -05:00
Tyson Gach
ef58e42a24 Add co-author prompt to gitmessage template
GitHub now supports trailers for co-authors. The syntax isn't the
easiest to remember, so having it as a prompt when commiting makes the
process easier.

More info: https://github.com/blog/2496-commit-together-with-co-authors
2018-02-03 15:10:18 -05:00
Geoff Harcourt
a7e107038a vimrc: Use consistent style for key mapping
This change updates portions of our vimrc that used inconsistent
capitalization for commands to have a more consistent style.
2018-01-05 14:09:05 -05:00
Geoff Harcourt
aa2f5b3d13 Remove deprecation warning for rbenv -> asdf
This change removes the deprecation warning and shim we added during the
transition from rbenv to asdf.
2018-01-05 14:07:20 -05:00
Geoff Harcourt
2f02c53042 Update copyright year -> 2018 2018-01-05 09:10:56 -05:00
Geoff Harcourt
6425042ee1 git: Use zebra for moved line colors
This change uses a git 2.15 feature to change the diff colors for lines
that have been moved rather than added or deleted. It provides a cue to
readers that a line's content has not changed.

Adding this setting in gitconfig should not break earlier git. (Tested
against 2.14 and the change had no effect.)
2018-01-03 16:45:22 -05:00
Andy Waite
3594ac5181 Use consistent syntax for tmux mappings
`bind` is effectively an alias for `bind-key`:

See https://superuser.com/questions/581939/on-tmux-what-is-the-difference-between-bind-and-bind-key
2017-12-28 12:55:23 -05:00
Geoff Harcourt
0786549686 merge-branch: exit 1 if origin and local differ
This change prevents chained commands from continuing execution if the
`git merge` is operation would be unsuccessful such as a common
operation when a feature branch is ready to be merged and pushed:

```
git merge-branch && git push origin
```

If the origin/master and the local master have any difference, we return
status 1 and stop execution rather then emit a false success.

h/t: @croaky

Fix #563.
2017-12-18 22:51:13 -05:00
Karun Siritheerathamrong
cad8f464e3 Use -g instead of --filename-pattern as Ag argument
This change undoes one of the two changes made in #564 so resolve an
issue for non macOS environments with Ag and ctrlp.
2017-12-18 22:39:38 -05:00
Bernerd Schaefer
06b4bf8c9c zsh: Allow prompt to be overridden
`zsh/configs/prompt.zsh` sets up the dotfile's custom prompt. It
currently does so in a way which prevents overriding the prompt for
specific invocations of zsh.

I noticed this because I've got a helper script for getting a shell
fully configured to work with the AWS CLI that ends with
`PS1='[aws] ' exec "$SHELL"` to distinguish the shell from other
sessions. With a vanilla zsh (and bash) setup, this correctly sets the
prompt on the new shell.

Here's a minimal demonstration with vanilla zsh:

```
bernerdscha-ltm% echo $PS1
%m%#
bernerdscha-ltm% PS1="hi> " exec zsh
hi>
```

And with dotfiles:

```
dotfiles bs-override-ps1 % echo $PS1
${SSH_CONNECTION+"%{$fg_bold[green]%}%n@%m"}%{$fg_bold[blue]%}%c%{$reset_color%}$(git_prompt_info) %#
dotfiles bs-override-ps1 % PS1="hi> " exec zsh
dotfiles bs-override-ps1 %
```

This PR updates prompt.zsh to only update the prompt if there's not an
existing exported PS1 variable. The export check is relevant because in
the default case where PS1 is not explicitly set  by the user it will
have already been set (but not exported) by the default zsh configs.
2017-12-06 10:24:13 -05:00
Derrick Carr
b860504752
Revert accidental merge from fork (#571)
This reverts two commits that were accidentally merged from a fork.
- commit c3180360ac
- commit ccb51c97c6
2017-11-17 16:36:59 -08:00
Derrick Carr
c3180360ac Use ASDF for version management
ASDF manages languages versions for many languages instead of just one.
This commit adds ASDF to path and completions for zsh, so that it's
easier to use.
2017-11-17 14:44:00 -08:00
Derrick Carr
ccb51c97c6 Make tmux splits oen in working directory 2017-11-17 14:44:00 -08:00
Andy Waite
113ddba054 Use long options for when calling ag for CtrlP plugin 2017-11-05 20:39:53 -05:00
Geoff Harcourt
c0317cedb0 Remove Vundle shim and deprecation warning
We've been using vim-plug over Vundle since 5724d12 (April 2015). Users
have had long enough to migrate their `vimrc.bundles.local` to use
vim-plug's `Plug` command.
2017-10-06 13:12:45 -04:00
Nhut Duong
e52c274215 Use exclude pattern with RCRC variable 2017-10-05 21:19:05 +07:00
Nhut Duong
a6a572d328 Exclude README in Spanish with RCRC variable 2017-10-05 10:22:36 +07:00
Ali-Akber Saifee
706c968a26 Update link to maintained Ctrl-P fork 2017-10-04 09:28:26 -04:00
Horacio Chavez
49d89bec0e Adds README in Spanish 2017-09-28 09:19:32 -04:00
Brad Urani
4fa7cd6f4b Filter commented lines out of .env in envup
Makes envup filter out comments in the .env file even if the line starts
with whitespace
2017-09-26 17:14:04 -04:00