mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Echos only basename in random theme notification.
This commit is contained in:
parent
085274ca8d
commit
d7096ee758
1 changed files with 2 additions and 1 deletions
|
|
@ -76,7 +76,8 @@ _source_zsh_theme() {
|
|||
((N=(RANDOM%N)+1))
|
||||
RANDOM_THEME=${themes[$N]}
|
||||
source "$RANDOM_THEME"
|
||||
echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
|
||||
theme_name=$(basename $RANDOM_THEME .zsh-theme)
|
||||
echo "[oh-my-zsh] Random theme '$theme_name' loaded..."
|
||||
elif; then
|
||||
if [ ! "$ZSH_THEME" = "" ]; then
|
||||
if [ -f "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue