This file contains 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
oh-my-posh.exe --init --shell pwsh --config "D:\OneDrive\Documents\Settings\Windows Terminal\oh-my-posh\kaja.omp.json" | Invoke-Expression | |
Import-Module -Name Terminal-Icons | |
Import-Module -Name CompletionPredictor | |
# dotnet CLI parameter completion | |
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock { | |
param($commandName, $wordToComplete, $cursorPosition) | |
dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object { | |
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) | |
} |
This file contains 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
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false |
This file contains 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
$currentDirectory = Get-Location | |
$namedDirectories = 'Contacts', 'Favorites', 'Links', 'Saved Games', 'Searches' | |
$directoriesToHide = Get-ChildItem -Path $currentDirectory -Directory | | |
Where-Object { $_.Name.StartsWith('.') -or $namedDirectories -contains $_.Name } | |
foreach ($dir in $directoriesToHide) { | |
$attributes = [System.IO.FileAttributes]::Hidden |
This file contains 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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"version": 2, | |
"final_space": true, | |
"palette": { | |
"white": "#ffffff", | |
"teal": "#047e84", | |
"plum": "#9a348e", | |
"dotnet": "#684396", | |
"rust": "#f05320", |