Last active
June 8, 2019 08:11
-
-
Save lewisakura/4e6e5a10cd7bfb2be5b22a4b506584ba to your computer and use it in GitHub Desktop.
powershell profile
This file contains hidden or 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
Install-Module powerline | |
Install-Module psgit | |
Install-Module posh-git |
This file contains hidden or 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
Import-Module powerline | |
Import-Module psgit | |
Import-Module posh-git | |
$prompt = @( | |
# uncomment for time | |
#{ Get-Date -f "T" } | |
{ Get-SegmentedPath -SegmentLimit 5 -Foreground Black } | |
# not very nice way of doing this but if i do it where it adds to a string it borks | |
{ New-PromptText { if (-Not (Test-Success)) { "" } else { " " } } -Bg White -EBg Red -Fg Black -EFg White } | |
) | |
[PoshCode.Pansies.Entities]::ExtendedCharacters::Separator = "\" # this is quite hacky but i like this as a separator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment