Skip to content

Instantly share code, notes, and snippets.

@rodgeraraujo
Last active October 13, 2022 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodgeraraujo/b53aeff855e11a272d516c1a55265ce8 to your computer and use it in GitHub Desktop.
Save rodgeraraujo/b53aeff855e11a272d516c1a55265ce8 to your computer and use it in GitHub Desktop.
My Windows Terminal Config Profile
# https://ohmyposh.dev/docs/installation/windows
# https://ohmyposh.dev/docs/themes
& ([ScriptBlock]::Create((oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\catppuccin_macchiato.omp.json" --print) -join "`n"))
# Shows navigable menu of all options when hitting Tab
#https://techcommunity.microsoft.com/t5/itops-talk-blog/autocomplete-in-powershell/ba-p/2604524
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# https://dev.to/animo/fish-like-autosuggestion-in-powershell-21ec
# 1-> Install-Module PSReadLine -RequiredVersion 2.1.0 -Scope CurrentUser
# 2-> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History
@rodgeraraujo
Copy link
Author

rodgeraraujo commented Oct 12, 2022

scoop sh:

# install scoop
iwr -useb get.scoop.sh | iex

neofetch:

 scoop install neofetch

terminal:

image

Installing profile

check if you have profile:

Test-path $profile

if false, create one with:

New-item –type file –force $profile

and if true, edit it with:

notepad $profile

paste this config file .ps1 and save, after restart your terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment