Commit bc9d4b89 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Remove racially-charged language from the codebase

The ZSH_THEME_RANDOM_BLACKLIST variable will be deprecated until it's
removed 2 months from now.
parent 2bc1da7f
...@@ -139,10 +139,10 @@ ZSH_THEME_RANDOM_CANDIDATES=( ...@@ -139,10 +139,10 @@ ZSH_THEME_RANDOM_CANDIDATES=(
) )
``` ```
If you only know which themes you don't like, you can add them similarly to a blacklist: If you only know which themes you don't like, you can add them similarly to an ignored list:
```shell ```shell
ZSH_THEME_RANDOM_BLACKLIST=(pygmalion tjkirch_mod) ZSH_THEME_RANDOM_IGNORED=(pygmalion tjkirch_mod)
``` ```
### FAQ ### FAQ
......
# Deprecate ZSH_THEME_RANDOM_BLACKLIST
if [[ -n "$ZSH_THEME_RANDOM_BLACKLIST" ]]; then
echo '[oh-my-zsh] ZSH_THEME_RANDOM_BLACKLIST is deprecated. Use `ZSH_THEME_RANDOM_IGNORED` instead.'
ZSH_THEME_RANDOM_IGNORED=($ZSH_THEME_RANDOM_BLACKLIST)
unset ZSH_THEME_RANDOM_BLACKLIST
fi
# Make themes a unique array # Make themes a unique array
typeset -Ua themes typeset -Ua themes
...@@ -11,8 +18,8 @@ else ...@@ -11,8 +18,8 @@ else
"$ZSH_CUSTOM"/themes/*.zsh-theme(N:t:r) "$ZSH_CUSTOM"/themes/*.zsh-theme(N:t:r)
"$ZSH"/themes/*.zsh-theme(N:t:r) "$ZSH"/themes/*.zsh-theme(N:t:r)
) )
# Remove blacklisted themes from the list # Remove ignored themes from the list
for theme in random ${ZSH_THEME_RANDOM_BLACKLIST[@]}; do for theme in random ${ZSH_THEME_RANDOM_IGNORED[@]}; do
themes=("${(@)themes:#$theme}") themes=("${(@)themes:#$theme}")
done done
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment