Skip to content

Instantly share code, notes, and snippets.

@lewisakura
Last active June 8, 2019 08:11
Show Gist options
  • Save lewisakura/4e6e5a10cd7bfb2be5b22a4b506584ba to your computer and use it in GitHub Desktop.
Save lewisakura/4e6e5a10cd7bfb2be5b22a4b506584ba to your computer and use it in GitHub Desktop.
powershell profile
Install-Module powerline
Install-Module psgit
Install-Module posh-git
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