Commit Graph
8 Commits
Author SHA1 Message Date
Daniel Hahler 9e4aba4c8c archlinux: use $+commands instead of 'command -v' in a subshell 2015-11-01 00:21:26 +01:00
Daniel HahlerandPhil Eichinger b578eea273 setopt append_history is not necessary.
Especially given the inc_append_history option, it is not necessary to
set the (default) append_history option.
2014-03-25 16:47:57 +01:00
Daniel Hahler 71d9420637 Use zsh's default for ':completion:*:hosts'
The manual configuration of ':completion:*:hosts' causes some problems
(e.g. issue #1337), and misses useful information (especially from
~/.ssh/known_hosts; issue #690 and issue #1009).

The best option appears to be using zsh's default configuration for
':completion:*:hosts'.

While rebasing this for a new pull request (#1498 got closed by accident
and then requests to re-open it got ignored), it also drops the `users
off` setting: completion of user names can be useful, and the commit
adding it (c4434d2) does not state why.
2014-03-13 17:48:58 +01:00
Daniel Hahler 98578ec241 setopt append_history is not necessary.
Especially given the inc_append_history option, it is not necessary to
set the (default) append_history option.
2011-12-16 14:21:45 +01:00
Daniel Hahler 70e51186ec Only setopt correct, not "correct_all".
Using the correct_all option is too distracting, and needs a lot of
`nocorrect` aliases to work around this.

Using only "correct" to correct the command itself is more friendly.
2011-12-16 14:01:59 +01:00
Daniel Hahler 2c660c16ad Only alias git=hub if hub --version works.
`hub` is crashing for me on a old CentOS setup with
"undefined method `shelljoin'".

On first use of the `git` function it is now checked if
`hub --version` returns successfully.
2011-11-24 13:57:10 +01:00
Daniel Hahler 911837c48f github plugin: check for ruby.
I've run into the issue where a stripped down container had no Ruby
installed, which caused `hub` to fail.

Therefore I've added an extra check to verify that `ruby` is in the
commands list before setting up this alias/function.
2011-04-13 00:33:17 +02:00
Daniel HahlerandRobby Russell 91e4f3d667 Fix gdv: make it a function, and use view.
I've changed it to use `view` instead of `vim -R` to make it hopefully
more editor-agnostic.
2011-04-12 10:11:53 +02:00