Last active
January 12, 2024 04:31
-
-
Save kevinfiol/43debe56831f08e364c2cee9d90c40b4 to your computer and use it in GitHub Desktop.
powershell (put in C:\Users\kevin\Documents\PowerShell)
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", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#81A1C1", | |
"properties": { | |
"style": "full" | |
}, | |
"style": "plain", | |
"template": "{{ .Path }} ", | |
"type": "path" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "#6C6C6C", | |
"properties": { | |
"branch_ahead_icon": "<#88C0D0>\u21e1 </>", | |
"branch_behind_icon": "<#88C0D0>\u21e3 </>", | |
"branch_icon": "", | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true, | |
"github_icon": "" | |
}, | |
"style": "plain", | |
"template": "{{ .HEAD }}", | |
"type": "git" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#ffffff", | |
"style": "plain", | |
"template": "»", | |
"type": "text" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"final_space": true, | |
"osc99": true, | |
"version": 2 | |
} |
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
# env variables | |
$env:FZF_DEFAULT_OPTS = '--reverse' | |
try { $null = gcm pshazz -ea stop; pshazz init } catch { } | |
Import-Module posh-git | |
# install with: Install-Module PSColor | |
Import-Module PSColor | |
# disable powershell7 auto suggestion | |
Set-PSReadLineOption -PredictionSource None | |
# install oh-my-posh with: Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1')) | |
# https://ohmyposh.dev/docs/installation/windows | |
oh-my-posh init pwsh --config https://gist.githubusercontent.com/kevinfiol/43debe56831f08e364c2cee9d90c40b4/raw/74dd31509a33124f27a7e3475536fb51bab82aad/oh-my-posh-conf.json | Invoke-Expression | |
$DefaultUser = $Env:UserName | |
# initialize fzf keybindings | |
# install fzf with `scoop install fzf` | |
# install psfzf with `scoop install psfzf` | |
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' | |
# bash like completion | |
Set-PSReadlineOption -BellStyle None | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
function touch {if((Test-Path -Path ($args[0])) -eq $false) {Set-Content -Path ($args[0]) -Value ($null)} else {(Get-Item ($args[0])).LastWriteTime = Get-Date } } | |
function source { gcm $args[0] | Select-Object Source } | |
function wsl:list { wsl -l -v } | |
function wsl:stop { wsl --shutdown } | |
function clear-history { Clear-Content "C:\Users\kevin\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt" } | |
function prof { micro "C:\Users\kevin\Documents\PowerShell\profile.ps1" } | |
# aliases | |
# install lsd with `scoop install lsd` | |
Set-Alias -Name ls -Value lsd -Option AllScope | |
# fnm load | |
fnm env --use-on-cd | Out-String | Invoke-Expression |
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 | |
}, | |
"keys": "ctrl+c" | |
}, | |
{ | |
"command": "paste", | |
"keys": "ctrl+v" | |
}, | |
{ | |
"command": "find", | |
"keys": "ctrl+shift+f" | |
}, | |
{ | |
"command": | |
{ | |
"action": "splitPane", | |
"split": "auto", | |
"splitMode": "duplicate" | |
}, | |
"keys": "alt+shift+d" | |
} | |
], | |
"alwaysShowTabs": false, | |
"centerOnLaunch": true, | |
"confirmCloseAllTabs": false, | |
"copyFormatting": "none", | |
"copyOnSelect": true, | |
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
"disableAnimations": true, | |
"initialCols": 98, | |
"initialRows": 28, | |
"newTabMenu": | |
[ | |
{ | |
"type": "remainingProfiles" | |
} | |
], | |
"profiles": | |
{ | |
"defaults": | |
{ | |
"closeOnExit": "always", | |
"colorScheme": "One Half Dark", | |
"font": | |
{ | |
"face": "Fira Code", | |
"features": | |
{ | |
"calt": 0, | |
"clig": 0, | |
"liga": 0, | |
"ss01": 1 | |
}, | |
"size": 10.0 | |
}, | |
"startingDirectory": "." | |
}, | |
"list": | |
[ | |
{ | |
"commandline": "%SystemRoot%\\System32\\cmd.exe", | |
"font": | |
{ | |
"face": "FuraCode NF" | |
}, | |
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
"hidden": false, | |
"name": "Command Prompt" | |
}, | |
{ | |
"altGrAliasing": true, | |
"antialiasingMode": "grayscale", | |
"closeOnExit": "graceful", | |
"commandline": "%SystemRoot%\\System32\\cmd.exe /k \"C:\\Users\\kevin\\apps\\cmder\\vendor\\init.bat\"", | |
"cursorShape": "bar", | |
"font": | |
{ | |
"face": "FuraCode NF" | |
}, | |
"guid": "{a77efe14-01b3-4e14-be56-3b24ed24ae61}", | |
"hidden": false, | |
"historySize": 9001, | |
"icon": "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png", | |
"name": "cmder", | |
"padding": "8, 8, 8, 8", | |
"snapOnInput": true, | |
"tabTitle": "cmd", | |
"useAcrylic": false | |
}, | |
{ | |
"commandline": "C:\\Users\\kevin\\apps\\clink\\clink_terminal.bat", | |
"guid": "{9dc03f29-d000-421d-b7d3-7f3946b262bc}", | |
"hidden": false, | |
"name": "clink" | |
}, | |
{ | |
"commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -nologo", | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"hidden": false, | |
"name": "Windows PowerShell" | |
}, | |
{ | |
"guid": "{fec1151e-5de2-54c3-a1e9-8f485f410f6c}", | |
"hidden": false, | |
"name": "Developer Command Prompt for VS 2022", | |
"source": "Windows.Terminal.VisualStudio" | |
}, | |
{ | |
"guid": "{e639b496-7e60-54b4-9341-3d3c2f46f0d8}", | |
"hidden": false, | |
"name": "Developer PowerShell for VS 2022", | |
"source": "Windows.Terminal.VisualStudio" | |
}, | |
{ | |
"commandline": "\"C:\\Program Files\\PowerShell\\7\\pwsh.exe\" -nologo", | |
"font": | |
{ | |
"face": "Fira Code" | |
}, | |
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
"hidden": false, | |
"name": "PowerShell", | |
"source": "Windows.Terminal.PowershellCore" | |
}, | |
{ | |
"guid": "{17bf3de4-5353-5709-bcf9-835bd952a95e}", | |
"hidden": true, | |
"name": "Ubuntu-22.04", | |
"source": "Windows.Terminal.Wsl" | |
}, | |
{ | |
"guid": "{e5a83caa-4c73-52b3-ae6b-bc438d721ef9}", | |
"hidden": false, | |
"name": "Ubuntu 22.04.3 LTS", | |
"source": "CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc" | |
} | |
] | |
}, | |
"schemes": | |
[ | |
{ | |
"background": "#0C0C0C", | |
"black": "#0C0C0C", | |
"blue": "#0037DA", | |
"brightBlack": "#767676", | |
"brightBlue": "#3B78FF", | |
"brightCyan": "#61D6D6", | |
"brightGreen": "#16C60C", | |
"brightPurple": "#B4009E", | |
"brightRed": "#E74856", | |
"brightWhite": "#F2F2F2", | |
"brightYellow": "#F9F1A5", | |
"cursorColor": "#FFFFFF", | |
"cyan": "#3A96DD", | |
"foreground": "#CCCCCC", | |
"green": "#13A10E", | |
"name": "Campbell", | |
"purple": "#881798", | |
"red": "#C50F1F", | |
"selectionBackground": "#FFFFFF", | |
"white": "#CCCCCC", | |
"yellow": "#C19C00" | |
}, | |
{ | |
"background": "#012456", | |
"black": "#0C0C0C", | |
"blue": "#0037DA", | |
"brightBlack": "#767676", | |
"brightBlue": "#3B78FF", | |
"brightCyan": "#61D6D6", | |
"brightGreen": "#16C60C", | |
"brightPurple": "#B4009E", | |
"brightRed": "#E74856", | |
"brightWhite": "#F2F2F2", | |
"brightYellow": "#F9F1A5", | |
"cursorColor": "#FFFFFF", | |
"cyan": "#3A96DD", | |
"foreground": "#CCCCCC", | |
"green": "#13A10E", | |
"name": "Campbell Powershell", | |
"purple": "#881798", | |
"red": "#C50F1F", | |
"selectionBackground": "#FFFFFF", | |
"white": "#CCCCCC", | |
"yellow": "#C19C00" | |
}, | |
{ | |
"background": "#1D1D1D", | |
"black": "#282C34", | |
"blue": "#61AFEF", | |
"brightBlack": "#5A6374", | |
"brightBlue": "#61AFEF", | |
"brightCyan": "#56B6C2", | |
"brightGreen": "#98C379", | |
"brightPurple": "#C678DD", | |
"brightRed": "#E06C75", | |
"brightWhite": "#DCDFE4", | |
"brightYellow": "#E5C07B", | |
"cursorColor": "#FFFFFF", | |
"cyan": "#56B6C2", | |
"foreground": "#DCDFE4", | |
"green": "#98C379", | |
"name": "One Half Dark", | |
"purple": "#C678DD", | |
"red": "#E06C75", | |
"selectionBackground": "#FFFFFF", | |
"white": "#DCDFE4", | |
"yellow": "#E5C07B" | |
}, | |
{ | |
"background": "#FAFAFA", | |
"black": "#383A42", | |
"blue": "#0184BC", | |
"brightBlack": "#4F525D", | |
"brightBlue": "#61AFEF", | |
"brightCyan": "#56B5C1", | |
"brightGreen": "#98C379", | |
"brightPurple": "#C577DD", | |
"brightRed": "#DF6C75", | |
"brightWhite": "#FFFFFF", | |
"brightYellow": "#E4C07A", | |
"cursorColor": "#4F525D", | |
"cyan": "#0997B3", | |
"foreground": "#383A42", | |
"green": "#50A14F", | |
"name": "One Half Light", | |
"purple": "#A626A4", | |
"red": "#E45649", | |
"selectionBackground": "#FFFFFF", | |
"white": "#FAFAFA", | |
"yellow": "#C18301" | |
}, | |
{ | |
"background": "#002B36", | |
"black": "#002B36", | |
"blue": "#268BD2", | |
"brightBlack": "#073642", | |
"brightBlue": "#839496", | |
"brightCyan": "#93A1A1", | |
"brightGreen": "#586E75", | |
"brightPurple": "#6C71C4", | |
"brightRed": "#CB4B16", | |
"brightWhite": "#FDF6E3", | |
"brightYellow": "#657B83", | |
"cursorColor": "#FFFFFF", | |
"cyan": "#2AA198", | |
"foreground": "#839496", | |
"green": "#859900", | |
"name": "Solarized Dark", | |
"purple": "#D33682", | |
"red": "#DC322F", | |
"selectionBackground": "#FFFFFF", | |
"white": "#EEE8D5", | |
"yellow": "#B58900" | |
}, | |
{ | |
"background": "#FDF6E3", | |
"black": "#002B36", | |
"blue": "#268BD2", | |
"brightBlack": "#073642", | |
"brightBlue": "#839496", | |
"brightCyan": "#93A1A1", | |
"brightGreen": "#586E75", | |
"brightPurple": "#6C71C4", | |
"brightRed": "#CB4B16", | |
"brightWhite": "#FDF6E3", | |
"brightYellow": "#657B83", | |
"cursorColor": "#002B36", | |
"cyan": "#2AA198", | |
"foreground": "#657B83", | |
"green": "#859900", | |
"name": "Solarized Light", | |
"purple": "#D33682", | |
"red": "#DC322F", | |
"selectionBackground": "#FFFFFF", | |
"white": "#EEE8D5", | |
"yellow": "#B58900" | |
}, | |
{ | |
"background": "#000000", | |
"black": "#000000", | |
"blue": "#3465A4", | |
"brightBlack": "#555753", | |
"brightBlue": "#729FCF", | |
"brightCyan": "#34E2E2", | |
"brightGreen": "#8AE234", | |
"brightPurple": "#AD7FA8", | |
"brightRed": "#EF2929", | |
"brightWhite": "#EEEEEC", | |
"brightYellow": "#FCE94F", | |
"cursorColor": "#FFFFFF", | |
"cyan": "#06989A", | |
"foreground": "#D3D7CF", | |
"green": "#4E9A06", | |
"name": "Tango Dark", | |
"purple": "#75507B", | |
"red": "#CC0000", | |
"selectionBackground": "#FFFFFF", | |
"white": "#D3D7CF", | |
"yellow": "#C4A000" | |
}, | |
{ | |
"background": "#FFFFFF", | |
"black": "#000000", | |
"blue": "#3465A4", | |
"brightBlack": "#555753", | |
"brightBlue": "#729FCF", | |
"brightCyan": "#34E2E2", | |
"brightGreen": "#8AE234", | |
"brightPurple": "#AD7FA8", | |
"brightRed": "#EF2929", | |
"brightWhite": "#EEEEEC", | |
"brightYellow": "#FCE94F", | |
"cursorColor": "#000000", | |
"cyan": "#06989A", | |
"foreground": "#555753", | |
"green": "#4E9A06", | |
"name": "Tango Light", | |
"purple": "#75507B", | |
"red": "#CC0000", | |
"selectionBackground": "#FFFFFF", | |
"white": "#D3D7CF", | |
"yellow": "#C4A000" | |
}, | |
{ | |
"background": "#300A24", | |
"black": "#171421", | |
"blue": "#0037DA", | |
"brightBlack": "#767676", | |
"brightBlue": "#08458F", | |
"brightCyan": "#2C9FB3", | |
"brightGreen": "#26A269", | |
"brightPurple": "#A347BA", | |
"brightRed": "#C01C28", | |
"brightWhite": "#F2F2F2", | |
"brightYellow": "#A2734C", | |
"cursorColor": "#FFFFFF", | |
"cyan": "#3A96DD", | |
"foreground": "#FFFFFF", | |
"green": "#26A269", | |
"name": "Ubuntu-22.04-ColorScheme", | |
"purple": "#881798", | |
"red": "#C21A23", | |
"selectionBackground": "#FFFFFF", | |
"white": "#CCCCCC", | |
"yellow": "#A2734C" | |
}, | |
{ | |
"background": "#000000", | |
"black": "#000000", | |
"blue": "#000080", | |
"brightBlack": "#808080", | |
"brightBlue": "#0000FF", | |
"brightCyan": "#00FFFF", | |
"brightGreen": "#00FF00", | |
"brightPurple": "#FF00FF", | |
"brightRed": "#FF0000", | |
"brightWhite": "#FFFFFF", | |
"brightYellow": "#FFFF00", | |
"cursorColor": "#FFFFFF", | |
"cyan": "#008080", | |
"foreground": "#C0C0C0", | |
"green": "#008000", | |
"name": "Vintage", | |
"purple": "#800080", | |
"red": "#800000", | |
"selectionBackground": "#FFFFFF", | |
"white": "#C0C0C0", | |
"yellow": "#808000" | |
} | |
], | |
"showTabsInTitlebar": false, | |
"showTerminalTitleInTitlebar": false, | |
"tabWidthMode": "equal", | |
"theme": "dark", | |
"themes": [], | |
"trimBlockSelection": true, | |
"useAcrylicInTabRow": false, | |
"windowingBehavior": "useAnyExisting" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment