Carlo
d93f317450
fix(init): prevent multiple compdump compilations ( #11345 )
...
Closes #11341
4 years ago
Giovanni Squillero
7dcabbe682
chore(init): ignore any aliases when running `rm` ( #11156 )
4 years ago
Monson Shao
875a455320
perf: `zrecompile` the compdump file to speed up startup ( #8802 )
4 years ago
Carlo Sala
a26d72baa2
fix(init): check for unsafe directories in `fpath` ( #10672 )
4 years ago
Carlo Sala
eabec36586
style(init): use consistent code style in init script ( #10601 )
5 years ago
Marc Cornellà
a54148a43e
fix(init): rename function `f` due to clash with `f` alias ( #10260 )
...
Fixes #10260
5 years ago
Marc Cornellà
7152a94280
feat(init): show error and process tree if OMZ is loaded from non-zsh shells ( #10234 )
5 years ago
Marc Cornellà
33c86fe80b
fix(init): detect and abort on non-zsh shell execution of Oh My Zsh
5 years ago
Marc Cornellà
2ea1fa6cbf
fix(init): fix `division by 0` error ( #10213 )
...
Fixes #10213
5 years ago
Marc Cornellà
93b557e291
style(core): make alternative cache directory equivalent to Arch Linux package
...
The oh-my-zsh-git package sets the cache directory to `$HOME/.cache/oh-my-zsh`, so
Oh My Zsh will be compatible with it.
5 years ago
Marc Cornellà
8784e88552
fix(core): use `$HOME/.cache` if default cache dir is non-writable ( #10193 )
...
Fixes #10193
5 years ago
Marc Cornellà
d2269180b0
fix(core): move plugin-generated completion files to `$ZSH_CACHE_DIR/completions`
...
Fixes #10183
5 years ago
Marc Cornellà
28ee5846bb
init: define $ZSH if not defined
...
Closes #9223
6 years ago
Ye Shu
5ffc0d036c
init: don't run update check if DISABLE_AUTO_UPDATE ( #9040 )
...
skip the update check at initialization if DISABLE_AUTO_UPDATE is set to true
6 years ago
Marc Cornellà
3f6e87df15
init: run update check in the same zsh process ( #9019 )
6 years ago
Marc Cornellà
3c777ebf1b
update: refactor and fix logic in check_for_upgrade.sh ( #8939 )
6 years ago
Marc Cornellà
aee9e603b4
init: reapply hack for invalid ZSH_COMPDUMP filenames ( b8761985)
6 years ago
Marc Cornellà
c58572d5fe
init: oops
6 years ago
Marc Cornellà
0e12ebb42d
init: use grep for zcompdump metadata check
...
Closes #8981
6 years ago
Jacob Menke
582c8cb291
Prefix cd calls with `builtin` ( #8937 )
6 years ago
Marc Cornellà
b876198575
init: silence zcompdump metadata write for invalid ZSH_COMPDUMP filenames
...
If `$SHORT_HOST` contains invalid filename characters, the compinit call doesn't
error, but the zcompdump metadata write does. Use `tee` instead so we can silence
the error.
See dd1a72696f (commitcomment-38984764)
6 years ago
Marc Cornellà
ff987384cf
core: fix cmp invocation in BSD systems
...
BSD cmp doesn't have the option of reading from stdin, so use process
substitution instead.
6 years ago
Marc Cornellà
dd1a72696f
core: refresh zcompdump cache file in init script ( #8878 )
6 years ago
Marc Cornellà
173d4ca68f
core: move core folder to lib, for now
6 years ago
Marc Cornellà
07bcf041c0
core: add basic Oh My Zsh CLI ( #8876 )
6 years ago
Willy Weiskopf
6adad5c300
Move random theme functionality into "random" theme
...
The statements for selecting a random theme in oh-my-zsh.sh and the themes
plugin are duplicate. Most people eventually settle on a theme, making those
lines in oh-my-zsh.sh superfluous. To address those, it may makes sense to put
the random theme functionality into a theme of its own (since themes are just
zsh scripts.
6 years ago
Marc Cornellà
a04728f168
init: force use of builtin test in is_plugin
...
Fixes #8545
7 years ago
Marc Cornellà
ea3e666e04
init: run compinit before loading lib/ files
7 years ago
Greg
3a6bf6bd26
init: more informative warning if plugin not found ( #7727 )
7 years ago
Avi ד
1e11a3c112
init: fix erroneous plugin not found warning ( #7686 )
...
Co-authored-by: Se De <Sede7473@gmail.com>
7 years ago
SomeDer
779ff24c2d
init: notify user if plugin isn't found ( #7679 )
7 years ago
Marc Cornellà
4cdffcd485
init: cut down on the number of compaudit calls
7 years ago
Chao Du
e96a7b728a
migrate .zsh-update file
8 years ago
Chao Du
de8299d6c4
Fixed Issue #4550 : Move ~/.zsh-update file to $ZSH_CACHE_DIR
8 years ago
Marc Cornellà
b91659951e
Always load secure completion directories
8 years ago
Marc Cornellà
afba4f6b9f
Load insecure completion files if compfix is disabled
...
We have to assume that if people disabled the compfix system they really want
their completion to work, ignoring any permission issues.
Fixes #5651
Fixes #5957
Fixes #6461
8 years ago
Mason
f94d4e6a40
Change from OSX to macOS in README ( #5545 )
10 years ago
Marc Cornellà
d8b03f3f95
init script: remove trailing slash from $ZSH_CACHE_DIR
10 years ago
LE Manh Cuong
5e77e00ad5
Some improvements
...
- Adding documentation
- Note the effect empty array
- Fix spelling
- Using new test `[[...]]`
11 years ago
LE Manh Cuong
531c41cdfe
Allow loading themes from predefined list
11 years ago
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/ .
12 years ago
Will Boyce
ed029f1801
allow overriding lib/*.zsh in custom/lib
12 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