Andrew Janke
4589bc6c65
completion: turn off the #3889 compfix check by default
11 years ago
Marc Cornellà
3fe3ce8bdc
Revert "Move custon *.zsh file sourcing up so that they can load plugins and other things that come after."
...
This reverts commit a28dbc8393 .
11 years ago
leycec
cb55161470
Completion insecurities handled on startup.
...
Completion-dependent directories with insecure permissions or ownership (e.g.,
group or other writability) are now detected, reported, and sanitized on OMZ
startup rather than unsafely ignored -- which resulted in effectively empty
completion caches and obscure compdef() errors resembling
"compdef: unknown command or service: git".
This fixes long-standing issues #630 , #3356 , and #3455 and related Babun issues
159, 281, and 322 -- and probably numerous other duplicates.
11 years ago
Archie
980528f9fa
fix typo
11 years ago
Matthew Hager
a28dbc8393
Move custon *.zsh file sourcing up so that they can load plugins and other things that come after.
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
Will Boyce
ed029f1801
allow overriding lib/*.zsh in custom/lib
11 years ago
Moinak Ghosh
5f38a537ce
Update Solaris changes to use OSTYPE and zsh datetime module.
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
Christian Höltje
00b21d5ac3
Trust but verify 'scutil' to return ComputerName
...
Apparently, it is possible to set up a Mac such that
`scutil --get ComputerName` hasn't been set.
This change checks if that fails and falls back to the original
mechanism.
Closes #2155
Closes #2183
12 years ago
Moinak Ghosh
5e328e3a9c
Solaris portability tweaks.
12 years ago
Christian Höltje
67d74cbc2d
Don't override ZSH_COMPDUMP if already set.
...
This allows customization via .zshenv if wanted. This is helpful
for zsh developers and people who want to move it out of $HOME
12 years ago
Juan Ignacio Donoso
dbdd23d0fa
Prevents oh-my-zsh loading the .zshenv twice
12 years ago
Eddie Monge
8119234356
standardize logic blocks
12 years ago
Christian Höltje
d2fe03d754
Create the zcompdump based on version and host
...
This will prevent lots of subtle problems that happen when
people upgrade ZSH or use NFS mounted home directories.
The ZSH_COMPDUMP variable can also be used to implement `zcompile`
and other fun features in the future.
13 years ago
Robby Russell
b2421cc73f
005d967dc4e879f304607a706ccd18886e630dc1
13 years ago
Alex
8a463b6df7
Better custom theme loading
...
oh-my-zsh.sh now also checks for $ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme when attempting to load a theme. This way custom themes can be a bit more organized in the 'custom' dir
13 years ago
Larry Lv
6c5e63022d
Unset `config_file` variable in oh-my-zsh.sh
...
`config_file` variable will mess up with `cd` auto-complete command.
eg. I have a local dir named `Code`, and when I type `cd co<Tab>`,
config_file will show up, and doesn't make any sense...
13 years ago
Hok Shun Poon
263446d725
Expand for-loop so that it works under Snow Leopard Terminal.app.
14 years ago
natsumesou
61c39b5039
Load symlink custom files
...
`(.)` search only real files.
The deletion of it enables searching symlink *.zsh files
14 years ago
Jim Myhrberg
f9018c5efb
Load themes from `$ZSH_CUSTOM` instead of `$ZSH/custom`
...
This seems like a simple oversight, everything else uses `$ZSH_CUSTOM`
rather than `$ZSH/custom`.
14 years ago
Jim Myhrberg
51c55ad17e
Suppress "zsh: no matches found" error when $ZSH_CUSTOM has no files
...
The addition of `(.N)` enables the `NULL_GLOB` option which suppresses
the error output in question.
Reference: http://www.zsh.org/mla/users/2004/msg00621.html
14 years ago
Arbo von Monkiewitsch
4b3429d765
fixing #812 : adding plugins w/o plugin.zsh file to fpath.
14 years ago
Christian Höltje
258457ea4f
Moved ZSH_CUSTOM declaration before fpath is set
...
* also normalized style to match the guide.
15 years ago
Christian Höltje
3512eca2ce
set fpath correctly for custom plugins
...
Custom plugins weren't being added to the fpath correctly.
15 years ago
fceccon
2ca2ad3fc5
First search in the custom folder for the theme
15 years ago
Tim Taylor
c113e88c45
Fix auto upgrade failure from non-exported ZSH env var
...
Fixes #549 . Specify ZSH=$ZSH explicitly when invoking
the auto update scripts.
15 years ago
Sune Kibsgaard Pedersen
3780247f63
added option of setting another path to custom plugins and files
...
just set ZSH_CUSTOM in your .zshrc, if not set oh-my-zsh.sh will
use the default custom dir in the repository
15 years ago
Marius Ghita
527355eae3
When the theme choice is left out, oh-my-zsh will not try to load it
15 years ago
Michael Komitee
9b4a89f327
Fix bug from Pull request #395
...
#395 broke oh-my-zsh for users who disable check-for-updates
15 years ago
vguerci
7c9474508c
[upgrade] before init (no reload needed unless oh-my-zsh.sh has been modified)
15 years ago
Jake Bell
f8aae64e47
Adding ability to override plugins from the custom directory.
15 years ago
Casey Watson
5c1b341132
Fix to random theme selection
...
- themes array is 1-based
- theme files names are located in indicies 1 through N inclusive
- this resolves an issue where you would occasionally see: "no such
file or directory. Random theme '' loaded..."
15 years ago
Guten
1aacb74caf
add custom completion support
15 years ago
Robby Russell
6f7d51c68d
Feature: Random themes now supported. Just set your theme to 'random' and it'll load a different theme each time oh-my-zsh is started. Closes #309
15 years ago
Pat Regan
58a7cf19b7
Move sourcing of custom to below plugins
15 years ago
Pat Regan
796f5164f3
Minor reformatting
15 years ago
Pat Regan
757ebfcbd2
Moved the plugin fpath loop and compinit so they happen before custom scripts are loaded.
15 years ago
Pat Regan
6bf906a262
Optimize plugin loading so that only one call to compinit is required
15 years ago
Pat Regan
16ac094a43
Moved compinit call back to oh-my-zsh.sh, after plugins are loaded
15 years ago
Pat Regan
235733e5e2
Removed commented out code.
15 years ago
Pat Regan
ef4175981b
Moved the single compinit call from oh-my-zsh.sh to lib/completion.zsh
15 years ago
Pat Regan
993e05da50
Replace redundant calls to compinit with a single call.
15 years ago
Michael Komitee
8294cf44d1
Postponing sourcing of the theme until after local customizations
15 years ago
Robby Russell
26d97a9355
Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there.
16 years ago
Tomas Kramar
e37d62a282
unset config_file is useless
16 years ago
Robby Russell
3cf9ab722e
Initial implementation of a new plugin system, so that people can managed which aliases/functions they want.
16 years ago
Robby Russell
7d036913c4
Unsetting config_file after loading config
16 years ago
johnmaxwelliv
20755df49e
Based on a suggestion from robbyrussel, using env for greater compatibility.
16 years ago
johnmaxwelliv
59116a25f1
Instead of using the user's standard shell, this script should be run using zsh, since that was the shell it was written for. On my machine changes to my default shell only take effect when I log out and then long in again. Plus, it's nice for people to be able to try oh-my-zsh out even if zsh isn't their default shell right? :-)
16 years ago