mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-25 14:01:03 +00:00
[U] gdate for macOS in trouble shooting
This commit is contained in:
parent
9ea03d17d4
commit
55a20a47fe
2 changed files with 7 additions and 4 deletions
|
|
@ -13,6 +13,6 @@ REF: [Oh-My-Zsh External themes](https://github.com/ohmyzsh/ohmyzsh/wiki/Externa
|
||||||
## Trouble Shooting
|
## Trouble Shooting
|
||||||
|
|
||||||
### macOS
|
### 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;```
|
||||||
|
|
@ -5,8 +5,11 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
{
|
{
|
||||||
gdate
|
gdate
|
||||||
} || {
|
} || {
|
||||||
echo "\n$fg_bold[yellow]zsh theme passion needs gdate in coreutils:$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[green]brew install coreutils;\n$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
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue