Age | Commit message (Collapse) | Author |
|
In older version of zsh, `add-zsh-hook` is not available, causing issues like:
```
/Users/hugo/.oh-my-zsh/lib/termsupport.zsh:32: add-zsh-hook: function definition file not found
/Users/hugo/.oh-my-zsh/lib/termsupport.zsh:33: add-zsh-hook: function definition file not found
```
See https://github.com/robbyrussell/oh-my-zsh/issues/748. This patch pulls in the changes suggested in https://github.com/robbyrussell/oh-my-zsh/issues/748#issuecomment-37862691 by @mcornella and I have tested it on RHEL 5.
|
|
removed a hardcoded 'origin' in git.zsh and added new function for number of commits ahead of remote
|
|
Merged from #2906
The function `git_prompt_info` calls `git config` for its stdout output,
but doesn't handle the stderr output. This can lead to problems,
e.g. if the git config file is unreadable for some reason (permissions
etc).
This fixes the issue by simply ignoring the stderr output.
|
|
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
|
|
|
|
before, 128 was returned, which could display an error,
but out of a git repo this should exit silently
fixes #2226
|
|
|
|
|
|
upstream branch since git 1.7.0
|
|
|
|
This commit move the nocorrect aliases definition so they're called
only when the user set ENABLE_CORRECTION to "true" to activate commands
autocorrection.
|
|
`fc -l 1` instead of `history` in zsh_stats, fixes #2501
|
|
don't add --exclude-dir to GREP_OPTIONS on FreeBSD
|
|
|
|
Fix escaping of $CMD of automatic title
|
|
Since e537ee9, the reverse-menu-complete keybinding has no longer been
properly bound (it was accidentally bound to the delete key).
This commit again binds it to shift-tab.
|
|
Fixes formatting on some rare cases when a percent ends up
in the $CMD variable, like these below:
- When assigning a variable, $CMD ends up with the second parameter;
in this case, $CMD will contain '+%s%N', messing with the syntax:
$ a=`date +%s%N`
- A function (or command in general) that contains a percent symbol:
$ to\%() { echo $(( $1 * 100 / $3))\% } # $CMD=to%()
$ to% 2 of 10 # $CMD=to%
|
|
Updates and refactors spectrum.zsh
|
|
Fixes #2641, #2642
|
|
avoid VCS folders
|
|
`setopt append_history` is not necessary.
|
|
Delete key (of Fn+Delete on Mac) would print "~" instead of deletion.
|
|
|
|
Aligned comments
|
|
|
|
Signed-off-by: Mariusz Fik <fisiu@opensuse.org>
|
|
Use zsh's default for ':completion:*:hosts'
|
|
Removed unsolicited aliases.
|
|
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.
|
|
Use terminfo key codes instead of hardcoded ones for key bindings
|
|
Those aliases should be in user's .zshrc file, instead of being default.
|
|
Avoid evaluating special chars in $LINE on title command (fixes #2234)
|
|
Added/modified some useful aliases.
|
|
Fixes #2182
|
|
|
|
|
|
|
|
$HIST_STAMP breaks zsh_stats. see #2501
|
|
Just activate word-splitting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Allows for the user to turn on auto-correction using the
$ENABLE_CORRECTION variable
- Adds aliases regardless of variable assignment to aid users that use
setopt to turn correction back on in their zshrc
|