Double quotes within the subscript test are interpreted literally, making the
test never match. On subsequent runs, the `$ZSH_CACHE_DIR/completions` directory
is always prepended to `$fpath`, even if it is already there. This commit fixes
that.
Fixes#12551
Co-authored-by: Adem Simsek <adem@simsek.dev>
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.
Digit modifiers were introduced in zsh 5.7.1 [1]. This commit uses readily available
alternatives for backwards compatibility.
[1] b8dc5a7f6dFixes#11598
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>
* 'master' of github.com:fklassen/ohmyzsh: (38 commits)
fix(aws): restore accidentally deleted variable
feat(upgrade): add verbosity settings
fix(uninstall): abort uninstall if unable to change shell (#10357)
feat(juju): add functions to get current controller and model (#11572)
fix(aws): do not print region if it's not defined
feat(aws): set region when AWS_REGION is not set
feat(gnu-utils): add `gindent` (#11569)
fix(lib): set equivalent LS_COLORS and LSCOLORS variables
feat(rails): add `rta` alias (#11553)
docs(vi-mode): document how to add vi-mode info on the prompt (#11548)
Fixing link to PA website in README
feat(vi-mode): add settings for vi-mode cursor styles (#10860)
fix(init): set completion colors on theme load, not with `precmd`
feat(aws): add AWS_REGION to aws_prompt_info (#10062)
fix(aliases): group properly aliases (#11546)
fix(argocd): typo in filename
feat(argocd): add completion plugin
refactor(theme-and-appearance): reorganize and clean up logic (#11529)
fix(lib): use `$BROWSER` in `open_command` if set (#11532)
docs(brew): remove duplication (#11535)
...
Conflicts:
oh-my-zsh.sh
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.
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)
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.