Commit graph

4 commits

Author SHA1 Message Date
Andrew Janke
2012ae8126 plugins/themes:
Rewrite theme() and lstheme() to remove pwd and variable side effects and make behavior consistent.

Include custom themes in lstheme() output.
Add comments that lay down the function interface.
Look for custom themes in $ZSH_CUSTOM/themes as well as base $ZSH_CUSTOM.
Rewrite theme's random theme selection in terms of lstheme() so random themes are included, and to streamline code.
Add a failure indication to theme() with nonzero return status. When a bad theme name is requested, indicate so by issuing a warning and returning nonzero.
2015-02-14 22:25:26 -05:00
Andrew Janke
d7c9e16f03 plugins/theme: change to 2-space indenting and detabify (per https://github.com/robbyrussell/oh-my-zsh/wiki/Coding-style-guide#general) 2015-02-14 21:28:50 -05:00
Kaiwen Xu
f731d6c16f themes plugin now picks a random theme if no argument is provided. 2013-10-28 11:06:10 -04:00
Roey Darwish Dror
5e9a16b88a Added themes plugin 2012-06-22 20:43:39 +03:00