Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
f731d6c1
Commit
f731d6c1
authored
Oct 28, 2013
by
Kaiwen Xu
Browse files
themes plugin now picks a random theme if no argument is provided.
parent
90c28b78
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/themes/themes.plugin.zsh
View file @
f731d6c1
function
theme
{
if
[
"
$1
"
=
"random"
]
;
then
if
[
-z
"
$1
"
]
||
[
"
$1
"
=
"random"
]
;
then
themes
=(
$ZSH
/themes/
*
zsh-theme
)
N
=
${#
themes
[@]
}
((
N
=(
RANDOM%N
)
+1
))
...
...
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