Marc Cornellà
3976e04035
Use proper if comparison
11 years ago
Andrew Janke
17da983442
termsupport: avoid repeated dir in window title in Terminal.app
11 years ago
Marc Cornellà
2d0bfcf818
Implement cross-platform open function open_command()
...
For now this supports:
- Mac OS X
- Linux (presumably works on all versions)
- Cygwin (Windows)
11 years ago
Andrew Janke
90ea67edf0
termsupport: protect title() with `emulate -L zsh`
...
This prevents it from malfunctioning when `setopt prompt_subst` is off.
11 years ago
Ali Afshar
f66a54fb78
Add missing space causing parse error.
11 years ago
Dan Mills
2fb326513a
Only load url-quote-magic if it is available.
...
Partially fixes #3614
11 years ago
Adam Lindberg
2d40cc0bb3
Add git_prompt_behind and git_prompt_exists
...
This adds two new theme functions for git:
* `git_prompt_behind` works in a identical fashion to `git_prompt_ahead`
and will output a format variable (`ZSH_THEME_GIT_PROMPT_BEHIND`) if
the branch is behind.
* `git_prompt_remote` will output one format variable if the branch
exists on remote (`ZSH_THEME_GIT_PROMPT_REMOTE_EXISTS`), and another
if the branch is unpublished (`ZSH_THEME_GIT_PROMPT_REMOTE_MISSING`).
The old `git_prompt_ahead` has been changed. Using git log is subject
to formatting in .gitconfig, which can be overridden and will break
this function. Relying on rev-list is much more stable.
11 years ago
leif.hanack
70c4a27fd6
Added a possibility to display the remote branch and the number of commits you are ahead or behind
11 years ago
Tejas Bubane
1653545282
Recognize comments by default.
11 years ago
Jordan Klassen
66052e2d07
Add hyphen insensitivity
11 years ago
Andrew Janke
6ccf67a077
Do not put explicit dot in $cdpath, since it causes problems on Cygwin due to an underlying zsh bug.
11 years ago
Zhiming Wang
2790a5e565
Bring back -h option to ls variants
...
The -h options in l, ll, and la were lost in 25b1cd6 . There's no reason
to remove them.
11 years ago
Marc Cornellà
3704fbb71e
Extract CWD notifier back out of auto-title hooks
11 years ago
Marc Cornellà
0edf416bea
Temporarily delete over-engineered solution
11 years ago
frozen_dude
448e966129
Fix for bad LC_CTYPE entry
...
LANG is a colon-separated list of prefered locales; LC_CTYPE is single entry,
therefore we need to remove all but one entry.
Also, there is no need setting it if it is already set (LC_ALL also sets
LC_CTYPE, so we check it too).
11 years ago
Marc Cornellà
2e41d06b76
Use quoted $TERM value everywhere
11 years ago
Marc Cornellà
b7e5dd35ef
Quick-fix code style
11 years ago
Andrew Janke
4fc6dccb42
term: Move DISABLE_AUTO_TITLE check to hooks
...
Move the DISABLE_AUTO_TITLE check from title() to the preX hook
functions that call it, to allow the title() function to be used
directly by user or other callers.
11 years ago
Marc Cornellà
2193135ebc
Clean up appearance lib file and redundant `colors` calls in other files
11 years ago
Marc Cornellà
51946eb3ce
Implement deletion of sl alias as per #3055
11 years ago
LFDM
4b4292a496
Fix a typo
11 years ago
LFDM
83c4e06206
Moves a bindkey call from misc to key-bindings.
11 years ago
LFDM
101149b1ae
Moves remaining aliases to misc and deletes file.
...
There were only three aliases left in aliases.zsh
File deleted!
11 years ago
LFDM
d33b0aae91
Refactors history alias and moves it.
...
More compact case statement instead of the ugly if elif... else
statement. Moves it to history.zsh
11 years ago
LFDM
25b1cd687b
Brings all directory stuff to directories.zsh
...
- Cleans out aliases.zsh.
- Removes unneeded cd function.
11 years ago
Andrew Janke
be7028012e
Reword comments on termsupport internal functions.
11 years ago
The Linux Kitten
f2130fa1a3
Test if --color=auto is a valid option for grep
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