Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Announcement/5004e08a29d6414a078034f76835c021 to your computer and use it in GitHub Desktop.
Save Announcement/5004e08a29d6414a078034f76835c021 to your computer and use it in GitHub Desktop.
$PROFILE
Import-Module PSReadLine
Import-Module PSFzf
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r'
$commandOverride = [ScriptBlock]{ param($Location) Write-Host $Location }
Set-PsFzfOption -AltCCommand $commandOverride
Set-PSReadLineKeyHandler -Key Tab -ScriptBlock { Invoke-FzfTabCompletion }
$host.ui.RawUI.WindowTitle = "PowerShell $($PSVersionTable.PSVersion)"
# deno completions powershell | Out-String | Invoke-Expression
# caddy completion powershell | Out-String | Invoke-Expression
# Import-Module PSReadLine
# Import-Module PoshColor
Set-Variable -Scope Script -Name Token -Value "→"
# if (Get-Command)
# Test-Path -Path $PROFILE
# Write-Host -ForegroundColor Cyan "Francis"
# Import-Module PSReadLine
# Clear-Host
# Start-Job { aria2c --enable-rpc --rpc-listen-all } -Name ARIA2
function prompt {
# "→ "
# "● "
# $(if ($NestedPromptLevel -ge 1) { '○' }) + '● '
# "⊘ "
# "⊷"
# "→ "
# Get-Variable -Name PromptToken -Scope Prompt
Write-Host -NoNewline $Token
" "
}
# ≣≡≸⊳⋮`
# Vertical Ellipsis
# U+22EF
# ⋯⋮⋱
# Down Right Diagonal Ellipsis
# U+22F2
# ⊶
# ⊷⊸
# ⊙⊸. "C:\rakubrew\bin\rakubrew.exe" init PowerShell | Out-String | Invoke-Expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment