summaryrefslogtreecommitdiff
path: root/themes/random.zsh-theme
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-09-18 19:34:17 +0200
committerMarc Cornellà <marc.cornella@live.com>2020-09-18 19:43:44 +0200
commitbc9d4b89bb3985a250e5a702a0f2d76a8632cd8a (patch)
treec65daa42696d3461d2c24985d34f5124f382974f /themes/random.zsh-theme
parent2bc1da7f377e78cdfa74190ffe5baf6c814d0fce (diff)
downloadzsh-bc9d4b89bb3985a250e5a702a0f2d76a8632cd8a.tar.gz
zsh-bc9d4b89bb3985a250e5a702a0f2d76a8632cd8a.tar.bz2
zsh-bc9d4b89bb3985a250e5a702a0f2d76a8632cd8a.zip
Remove racially-charged language from the codebase
The ZSH_THEME_RANDOM_BLACKLIST variable will be deprecated until it's removed 2 months from now.
Diffstat (limited to 'themes/random.zsh-theme')
-rw-r--r--themes/random.zsh-theme11
1 files changed, 9 insertions, 2 deletions
diff --git a/themes/random.zsh-theme b/themes/random.zsh-theme
index 6cb7cc579..85a8612b7 100644
--- a/themes/random.zsh-theme
+++ b/themes/random.zsh-theme
@@ -1,3 +1,10 @@
+# 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
typeset -Ua themes
@@ -11,8 +18,8 @@ else
"$ZSH_CUSTOM"/themes/*.zsh-theme(N:t:r)
"$ZSH"/themes/*.zsh-theme(N:t:r)
)
- # Remove blacklisted themes from the list
- for theme in random ${ZSH_THEME_RANDOM_BLACKLIST[@]}; do
+ # Remove ignored themes from the list
+ for theme in random ${ZSH_THEME_RANDOM_IGNORED[@]}; do
themes=("${(@)themes:#$theme}")
done
fi