[U] gdate for macOS in trouble shooting

This commit is contained in:
chesteryue 2020-04-26 15:55:07 +08:00
parent 9ea03d17d4
commit 55a20a47fe
2 changed files with 7 additions and 4 deletions

View file

@ -13,6 +13,6 @@ REF: [Oh-My-Zsh External themes](https://github.com/ohmyzsh/ohmyzsh/wiki/Externa
## Trouble Shooting
### macOS
passsion.zsh-theme depends on cmd ```gdate``` to get current time in milliseconds which is not installed default in macOS.
passsion.zsh-theme depends on cmd ```gdate``` to get current time in milliseconds which is not installed by default in macOS.
run ```brew install coreutils;``` to get ```gdate```;
to get ```gdate``` by running ```brew install coreutils;```

View file

@ -5,8 +5,11 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
{
gdate
} || {
echo "\n$fg_bold[yellow]zsh theme passion needs gdate in coreutils:$reset_color"
echo "$fg_bold[green]brew install coreutils;\n$reset_color";
echo "\n$fg_bold[yellow]passsion.zsh-theme depends on cmd [gdate] to get current time in milliseconds$reset_color"
echo "$fg_bold[yellow][gdate] is not installed by default in macOS$reset_color"
echo "$fg_bold[yellow]to get [gdate] by running:$reset_color"
echo "$fg_bold[green]brew install coreutils;$reset_color";
echo "$fg_bold[yellow]\nREF: https://github.com/ChesterYue/ohmyzsh-theme-passion#macos\n$reset_color"
}
fi