Last active
August 23, 2018 17:00
-
-
Save ilivewithian/2798775edcf0603d5320f7911f82c87a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$emojis = @( | |
'GRINNING FACE', | |
'GRINNING FACE WITH SMILING EYES', | |
'FACE WITH TEARS OF JOY', | |
'SMILING FACE WITH OPEN MOUTH', | |
'SMILING FACE WITH OPEN MOUTH AND SMILING EYES', | |
'SMILING FACE WITH OPEN MOUTH AND COLD SWEAT', | |
'SMILING FACE WITH OPEN MOUTH AND TIGHTLY-CLOSED EYES', | |
'WINKING FACE', | |
'SMILING FACE WITH SMILING EYES', | |
'SMILING FACE WITH SUNGLASSES', | |
'SMILING FACE WITH HEART-SHAPED EYES', | |
'FACE WITH STUCK-OUT TONGUE', | |
'FACE WITH STUCK-OUT TONGUE AND WINKING EYE', | |
'FACE WITH STUCK-OUT TONGUE AND TIGHTLY-CLOSED EYES' | |
) | |
# if(-Not(Get-Command "Get-Emoji" -errorAction SilentlyContinue)) | |
# { | |
# Install-Module -Name Emojis -Scope CurrentUser -Force; | |
# } | |
# if (-Not(Get-Module -ListAvailable -Name "post-gt")) { | |
# PowerShellGet\Install-Module posh-git -Scope CurrentUser | |
# } | |
function prompt { | |
Write-Host $ExecutionContext.SessionState.Path.CurrentLocation -NoNewline | |
Write-VcsStatus | |
Write-Host ">" | |
Get-Emoji -Name ($emojis | Get-Random) | Write-Host -NoNewline | |
$LASTEXITCODE = $origLastExitCode | |
"$('>_' * ($nestedPromptLevel + 1)) " | |
} | |
Import-Module posh-git | |
# Chocolatey profile | |
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | |
if (Test-Path($ChocolateyProfile)) { | |
Import-Module "$ChocolateyProfile" | |
} | |
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock { | |
param($commandName, $wordToComplete, $cursorPosition) | |
dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object { | |
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment