summaryrefslogtreecommitdiff
path: root/oh-my-zsh.sh
AgeCommit message (Collapse)Author
2023-09-04fix(init): exit gracefully if on non-zsh emulation mode (#11874)Marc Cornellà
Fixes #11686
2023-08-21refactor(init): rename variable (#11851)LuckyWindsck
2023-05-01fix(init): avoid overwriting existing aliasesCarlo Sala
Fix regression introduced in #11550. If an existing alias was present in the moment of sourcing, and oh-my-zsh aliases were disabled for that file, it'd be overwritten aswell. See #11658.
2023-04-03fix(init): don't use digits in parameter modifiers for compatibility (#11598)Marc Cornellà
Digit modifiers were introduced in zsh 5.7.1 [1]. This commit uses readily available alternatives for backwards compatibility. [1] https://github.com/zsh-users/zsh/commit/b8dc5a7f6d Fixes #11598
2023-04-03feat(init)!: allow turning off aliases for libs and plugins (#11550)Marc Cornellà
BREAKING CHANGE: the previous zstyle setting to disable `lib/directories.zsh` aliases has been changed to the new syntax: `zstyle ':omz:lib:directories' aliases no`. See https://github.com/ohmyzsh/ohmyzsh#skip-aliases to see other ways you can use this setting. Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2023-03-07fix(init): set completion colors on theme load, not with `precmd`Marc Cornellà
This fixes an edge case where the user actually sets zstyle ':completion:*' list-colors in their zshrc, but the previous code used a precmd hook, which would override the user changes. With this change our modifications will be set in the init script, after the theme loads, so that later changes can affect our defaults. Note that this will not be run for users on plugin managers, as these don't generally run our init script.
2023-01-17fix(init): remove duplicated checkCarlo Sala
It was added due to #9039. See https://github.com/ohmyzsh/ohmyzsh/pull/11400#pullrequestreview-1223587420
2022-11-20fix(init): prevent multiple compdump compilations (#11345)Carlo
Closes #11341
2022-09-10chore(init): ignore any aliases when running `rm` (#11156)Giovanni Squillero
2022-09-07perf: `zrecompile` the compdump file to speed up startup (#8802)Monson Shao
2022-04-19fix(init): check for unsafe directories in `fpath` (#10672)Carlo Sala
2022-01-28style(init): use consistent code style in init script (#10601)Carlo Sala
2021-10-04fix(init): rename function `f` due to clash with `f` alias (#10260)Marc Cornellà
Fixes #10260
2021-10-04feat(init): show error and process tree if OMZ is loaded from non-zsh shells ↵Marc Cornellà
(#10234)
2021-09-28fix(init): detect and abort on non-zsh shell execution of Oh My ZshMarc Cornellà
2021-09-24fix(init): fix `division by 0` error (#10213)Marc Cornellà
Fixes #10213
2021-09-15style(core): make alternative cache directory equivalent to Arch Linux packageMarc Cornellà
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.
2021-09-15fix(core): use `$HOME/.cache` if default cache dir is non-writable (#10193)Marc Cornellà
Fixes #10193
2021-09-15fix(core): move plugin-generated completion files to ↵Marc Cornellà
`$ZSH_CACHE_DIR/completions` Fixes #10183
2020-09-04init: define $ZSH if not definedMarc Cornellà
Closes #9223
2020-06-18init: don't run update check if DISABLE_AUTO_UPDATE (#9040)Ye Shu
skip the update check at initialization if DISABLE_AUTO_UPDATE is set to true
2020-06-17init: run update check in the same zsh process (#9019)Marc Cornellà
2020-06-09update: refactor and fix logic in check_for_upgrade.sh (#8939)Marc Cornellà
2020-06-03init: reapply hack for invalid ZSH_COMPDUMP filenames (b8761985)Marc Cornellà
2020-06-02init: oopsMarc Cornellà
2020-06-02init: use grep for zcompdump metadata checkMarc Cornellà
Closes #8981
2020-05-20Prefix cd calls with `builtin` (#8937)Jacob Menke
2020-05-07init: silence zcompdump metadata write for invalid ZSH_COMPDUMP filenamesMarc Cornellà
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 https://github.com/ohmyzsh/ohmyzsh/commit/dd1a72696f162fd5285a104b5f63970deb66e8b0#commitcomment-38984764
2020-05-05core: fix cmp invocation in BSD systemsMarc Cornellà
BSD cmp doesn't have the option of reading from stdin, so use process substitution instead.
2020-05-04core: refresh zcompdump cache file in init script (#8878)Marc Cornellà
2020-05-01core: move core folder to lib, for nowMarc Cornellà
2020-05-01core: add basic Oh My Zsh CLI (#8876)Marc Cornellà
2020-02-19Move random theme functionality into "random" themeWilly Weiskopf
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.
2020-01-19init: force use of builtin test in is_pluginMarc Cornellà
Fixes #8545
2019-05-07init: run compinit before loading lib/ filesMarc Cornellà
2019-04-03init: more informative warning if plugin not found (#7727)Greg
2019-03-22init: fix erroneous plugin not found warning (#7686)Avi ד
Co-authored-by: Se De <Sede7473@gmail.com>
2019-03-21init: notify user if plugin isn't found (#7679)SomeDer
2019-02-25init: cut down on the number of compaudit callsMarc Cornellà
2018-06-15migrate .zsh-update fileChao Du
2018-06-15Fixed Issue #4550: Move ~/.zsh-update file to $ZSH_CACHE_DIRChao Du
2018-05-26Always load secure completion directoriesMarc Cornellà
2018-05-15Load insecure completion files if compfix is disabledMarc Cornellà
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
2017-11-01Merge branch 'Random_Theme_From_List' of https://github.com/Gnouc/oh-my-zsh ↵Robby Russell
into Gnouc-Random_Theme_From_List
2016-10-18Change from OSX to macOS in README (#5545)Mason
2016-08-25init script: remove trailing slash from $ZSH_CACHE_DIRMarc Cornellà
2015-12-18Some improvementsLE Manh Cuong
- Adding documentation - Note the effect empty array - Fix spelling - Using new test `[[...]]`
2015-12-18Allow loading themes from predefined listLE Manh Cuong
2015-09-28completion: turn off the #3889 compfix check by defaultAndrew Janke
2015-09-19Merge pull request #3889 from leycec/compauditRobby Russell
Repair `zsh` Path Permissions on `oh-my-zsh` Startup under Cygwin