Skip to content

Instantly share code, notes, and snippets.

@Jaykul
Created May 7, 2019 17:19
Show Gist options
  • Save Jaykul/036456096a1e15bfc9e6be0cdf725153 to your computer and use it in GitHub Desktop.
Save Jaykul/036456096a1e15bfc9e6be0cdf725153 to your computer and use it in GitHub Desktop.
An emoji prompt
function prompt {
if (Test-Success) {
$heart = "❀", "🧑", "πŸ’›", "πŸ’š", "πŸ’™", "πŸ’œ", "πŸ’”", "πŸ’•", "πŸ’“", "πŸ’—", "πŸ’–", "πŸ’˜", "πŸ’" | Get-Random
"`e[107m`e[30mI${heart}PS`e[37m`e[49mξ‚°" # that last character is the powerline >
} else {
$heart = "🧑", "πŸ’›", "πŸ’™", "πŸ–€" | Get-Random
"`e[41m`e[37mI${heart}PS`e[31m`e[49mξ‚°" # that last character is the powerline >
}
}
@jkavanagh58
Copy link

Outstanding!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment