Skip to content

Instantly share code, notes, and snippets.

View sagasu's full-sized avatar
💭
🤖 he is not a human.

Mateusz Kopij sagasu

💭
🤖 he is not a human.
View GitHub Profile
@sagasu
sagasu / Microsoft.PowerShell_profile.ps1
Last active August 3, 2023 08:04
C:\Users\mattk\OneDrive\Dokumenty\PowerShell\Microsoft.PowerShell_profile.ps1
# this is aprofile file for powershell, you can find where it is on your machine by running `echo $PROFILE` inside powershell.
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#uncomment set-execution policy bypass if you see can't load module because it is not digitaly sign exception
@sagasu
sagasu / sagasu.omp.json
Created October 15, 2021 14:23
oh my posh config file kept under `C:\Users\mattk\AppData\Local\Programs\oh-my-posh\themes`
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@sagasu
sagasu / Microsoft.PowerShell_profile.ps1
Last active October 15, 2021 14:47
Powershell profile stored in `C:\Users\mattk\OneDrive\Dokumenty\PowerShell` for oh my posh
oh-my-posh --init --shell pwsh --config oh-my-posh --init --shell pwsh --config C:\Users\mattk\AppData\Local\Programs\oh-my-posh\themes\sagasu.omp.json | Invoke-Expression/sagasu.omp.json | Invoke-Expression
@sagasu
sagasu / settings.json
Created October 15, 2021 13:21
Windows 11 terminal configuration
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
},