Andrew Janke
be7028012e
Reword comments on termsupport internal functions.
11 years ago
Andrew Janke
5f79ab5547
Move chpwd update output from chpwd hook to precmd to avoid
...
contaminating script/function output
11 years ago
Stephen
bf7b9165fd
Allow custom cache dir
...
We are running oh-my-zsh on a shared install and the only issue is each
user having a custom cache dir. This will allow us to set the cache dir
to ZSH_CACHE_DIR=~/oh-my-zsh/cache/ .
11 years ago
Andrew Janke
7295e38885
termsupport: add chpwd hook for setting pwd in Apple Terminal.app
11 years ago
Joe Block
16d0768305
Quote path in case $HOME has a space in it.
...
I've seen stranger things on OS X, unfortunately.
This reverts commit 1f5cecee4768be192e439a72a873a6cfe8720927.
11 years ago
Robby Russell
1978a0923c
Revert PR #3359 as this is breaking stuff for many folks. Need to rethink how we handle system defaults differently on this
11 years ago
Ondřej Súkup
dd27087805
Change to alias and remove deprecated GREP_COLOR
11 years ago
Marc Cornellà
711843153d
Tidy up the grep.zsh library
11 years ago
Marc Cornellà
0190eb084b
Use unaliased grep in flag check
11 years ago
Marc Cornellà
cf586b54b8
Ignore .bzr folders in grep too
11 years ago
Marc Cornellà
0bd3c9996f
Extract VCS folders definition to avoid repetition
11 years ago
Joe Block
5bf715787a
Existing code indents with spaces, not tabs, conform.
11 years ago
Joe Block
1ebc98b9ed
Don't clobber HISTSIZE or SAVEHIST if they're already set
11 years ago
Marc Cornellà
a301f567e3
Switch back to oh-my-zsh.hide-dirty setting again
...
Commit 81004dfaba reverted the change
in 9b811fb625 when editing the merge
conflict from #2928 .
This commit fixes that so that we don't make the same mistake again.
First seen in http://git.io/Cdaj5Q
11 years ago
DanielFGray
00ec11d3c0
ignore any grep aliases that might be defined
12 years ago
Marc Cornellà
74177c5320
Change all whoami calls for $USER variable
...
This avoid spawning additional processes, as the $USER variable will
**always** contain the current logged-in user.
12 years ago
Marc Cornellà
36e05e95ad
Don't set auto_name_dirs because it messes up prompts
...
From http://zsh.sourceforge.net/Doc/Release/Options.html#Completion-4
> AUTO_NAME_DIRS
> Any parameter that is set to the absolute name of a directory immediately
> becomes a name for that directory, that will be used by the ‘%~’ and
> related prompt sequences, and will be available when completion is performed
> on a word starting with ‘~’.
> (Otherwise, the parameter must be used in the form ‘~param’ first.)
Explained in more detail in
https://github.com/wayneeseguin/rvm/issues/3091#issuecomment-60083194
Related issues:
https://github.com/robbyrussell/oh-my-zsh/issues/2857
https://github.com/robbyrussell/oh-my-zsh/issues/3238
https://github.com/wayneeseguin/rvm/issues/3091
12 years ago
Moinak Ghosh
5f38a537ce
Update Solaris changes to use OSTYPE and zsh datetime module.
12 years ago
sachin21
ac053f4211
This alias is conflict cause
12 years ago
Jingwen Owen Ou
dc9e1764cf
Fix missing add-zsh-hook
...
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.
12 years ago
Fredrik Fornwall
dac2a6e27a
Replace /usr/bin/env with env
...
Some environments (such as Android) does not have /usr/bin.
12 years ago
Moinak Ghosh
5e328e3a9c
Solaris portability tweaks.
12 years ago
Simon Buchan
2927ce3714
Fix POST_1_7_2_GIT check for parse_git_dirty submodules.
12 years ago
Simon Buchan
676fb4e420
Fix parse_git_dirty() when status.branch is set.
12 years ago
Albert Krewinkel
c5d9fc9968
git_prompt_info: ignore git-config errors
...
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.
12 years ago
Mikhail S. Pobolovets
49161e7847
Add missing `command` wrapper for git
...
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
12 years ago
Will Boyce
09fdf76311
ignore usernames beginning with underscore
12 years ago
ncanceill
7fbbf28e6e
return 0 when not a git repo
...
before, 128 was returned, which could display an error,
but out of a git repo this should exit silently
fixes #2226
12 years ago
r3dDoX
514693125b
added prefix/suffix variable for customizability
12 years ago
r3dDoX
59c8fcc712
added new function to get number of commits ahead of remote
12 years ago
r3dDoX
3c485db8c7
replaced hardcoded origin/{branch-name} with @{upstream} which gets the upstream branch since git 1.7.0
12 years ago
Simon Courtois
b64e695b35
Ordering nocorrect aliases alphabetically
12 years ago
Simon Courtois
cd8d5c4410
Defining nocorrect aliases only when ENABLE_CORRECTION is "true"
...
This commit move the nocorrect aliases definition so they're called
only when the user set ENABLE_CORRECTION to "true" to activate commands
autocorrection.
12 years ago
Dmitriy
9385b3ee0a
set exclude-dir or exclude grep flags only if available
12 years ago
Andre Eriksson
9650861e56
Fix broken reverse-menu-complete keybinding.
...
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.
12 years ago
Marc Cornellà
5137e0e509
Escape % in $CMD variable
...
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%
12 years ago
LFDM
94a5cc5c63
Updates spectrum.zsh
12 years ago
Marc Cornellà
c0e3c553bc
Fix export syntax of $GREP_OPTIONS
...
Fixes #2641 , #2642
12 years ago
nXqd
d2a765e12d
avoid VCS folders
12 years ago
Daniel Hahler
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.
12 years ago
Marc Cornellà
12e30faaca
Fix export syntax of $GREP_OPTIONS
...
Fixes #2641 , #2642
12 years ago
Alexei Danchenkov
32a7824182
Added a forward-delete fallback to bind Delete key
...
Delete key (of Fn+Delete on Mac) would print "~" instead of deletion.
12 years ago
Alexei Danchenkov
c5413d7dd1
Aligned comments
12 years ago
Alexei Danchenkov
55a9d685fd
Update key-bindings.zsh
...
Aligned comments
12 years ago
Alexei Danchenkov
e537ee9db9
added terminfo keys verification
12 years ago
Mariusz Fik
b56e8fb478
Ignore more users in ssh completion.
...
Signed-off-by: Mariusz Fik <fisiu@opensuse.org>
12 years ago
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.
12 years ago
Kaiwen Xu
b71a2b9d0f
Removed unsolicited aliases.
...
Those aliases should be in user's .zshrc file, instead of being default.
12 years ago
Marc Cornellà
a951600b4e
Avoid 'title:parse error' with single quotes in $CMD
...
Fixes #2182
12 years ago
Marc Cornellà
3e5de21dc5
Revert previous commit, escape %
12 years ago