Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
bc9d4b89
Commit
bc9d4b89
authored
Sep 18, 2020
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
README.md
README.md
+2
-2
random.zsh-theme
themes/random.zsh-theme
+9
-2
No files found.
README.md
View file @
bc9d4b89
...
@@ -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
black
list:
If you only know which themes you don't like, you can add them similarly to a
n ignored
list:
```
shell
```
shell
ZSH_THEME_RANDOM_
BLACKLIST
=(
pygmalion tjkirch_mod
)
ZSH_THEME_RANDOM_
IGNORED
=(
pygmalion tjkirch_mod
)
```
```
### FAQ
### FAQ
...
...
themes/random.zsh-theme
View file @
bc9d4b89
# 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
blacklist
ed themes from the list
# Remove
ignor
ed 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment