Andrew Janke
46ddd88fe0
diagnostics: switch to shasum, filter sysinfo using lines
...
shasum seems more widely available than md5/md5sum, and we don't have to worry about dealing with the different signatures and output formats of md5 and md5sum then.
sysinfo outputs localized message labels, so we can't just grep for "OS Type". But OS is the first thing it outputs, so we can probably just grab those lines by line number. Switched to doing that.
11 years ago
Andrew Janke
fa25445868
diagnostics: include output file name in dump output
11 years ago
Andrew Janke
bca720fa95
diagnostics: include detailed OS version info if possible
11 years ago
Andrew Janke
9813ff5f24
omz_diagnostic_dump: Add umask and $fpath listing.
...
This helps catch issues with compinit and insecure directories.
11 years ago
Andrew Janke
af68165207
Fix name of backed-up zshrc
11 years ago
Andrew Janke
afadb5a7fb
diagnostics: add zstyle state to output
11 years ago
Andrew Janke
82c1288cb2
Include some bash rc files; improve formatting; more version info
11 years ago
Andrew Janke
ea6adc5a0a
Add omz_diagnostic_dump() to help with bug reports.
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
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