Skip to content

Instantly share code, notes, and snippets.

@R3tr0BoiDX
Last active October 29, 2025 13:15
Show Gist options
  • Select an option

  • Save R3tr0BoiDX/529932058d2ddc64d48b5943c9be5696 to your computer and use it in GitHub Desktop.

Select an option

Save R3tr0BoiDX/529932058d2ddc64d48b5943c9be5696 to your computer and use it in GitHub Desktop.
A terninal based start menu replacement for headless Windows Server installs based in fzf
# You'll need fzf from https://github.com/junegunn/fzf
# Get all .lnk files from both all-users and current-user Start Menu
$allApps = Get-ChildItem "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" -Recurse -Filter *.lnk
$userApps = Get-ChildItem "$env:APPDATA\Microsoft\Windows\Start Menu\Programs" -Recurse -Filter *.lnk
$apps = $allApps + $userApps
$selectedApp = $apps | ForEach-Object { $_.BaseName } | fzf.exe
if ($selectedApp) {
$appPath = ($apps | Where-Object { $_.BaseName -eq $selectedApp }).FullName
Start-Process $appPath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment