mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Adds more comments.
This commit is contained in:
parent
338141784a
commit
085274ca8d
1 changed files with 10 additions and 8 deletions
18
oh-my-zsh.sh
18
oh-my-zsh.sh
|
|
@ -103,17 +103,19 @@ _default_theming() {
|
|||
}
|
||||
|
||||
# Tries to source a theme given as ZSH_THEME.
|
||||
# If ZSH_THEME is not set, nothing is done at all. This is
|
||||
# to enable users do circumvent the theming of oh-my-zsh
|
||||
# on purpose.
|
||||
# If ZSH_THEME contains an invalid theme string, a fallback
|
||||
# is provided.
|
||||
# Takes an argument to provide a new value fo ZSH_THEME
|
||||
# before loading it.
|
||||
# Example to load a random theme::
|
||||
# If ZSH_THEME is not set, nothing is done at all. This is to enable
|
||||
# users do circumvent the theming of oh-my-zsh on purpose.
|
||||
# If ZSH_THEME contains an invalid theme string, a fallback is provided.
|
||||
# Takes an argument to provide a new value fo ZSH_THEME before loading it.
|
||||
# Example to load a random theme:
|
||||
# load_zsh_theme random
|
||||
# Example to load whatever ZSH_THEME currently is:
|
||||
# load_zsh_theme
|
||||
#
|
||||
# A word of warning: The function doesn't clean up after itself - that means
|
||||
# that if you load a theme that define a precmd and or zsh hooks (examples
|
||||
# are pygmalion or pure) you will see remnants of their prompts if you load
|
||||
# another theme on the fly. Just open a new shell and you're good again.
|
||||
load_zsh_theme() {
|
||||
if [ ! "$1" = '' ]; then; ZSH_THEME="$1"; fi
|
||||
_source_zsh_theme || _default_theming
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue