Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
# Exact Solarized Dark color theme for the color GNU ls utility. | |
# Designed for dircolors (GNU coreutils) 5.97 | |
# | |
# This simple theme was simultaneously designed for these terminal color schemes: | |
# - Solarized dark (best) | |
# - Solarized light | |
# - default dark | |
# - default light | |
# with a slight optimization for Solarized Dark. | |
# |
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>CreateMediatRCommand</Title> | |
<Author>Rob Prouse</Author> | |
<Description>Create MediatR Command and Handler with no return type</Description> |
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "executiontime", | |
"style": "diamond", |
[user] | |
name = Rob Prouse | |
email = r.prouse@valsoftcorp.com | |
signingkey = E9EEEB0C19C1EC22 | |
[core] | |
autocrlf = input | |
excludesfile = | |
editor = \"C:\\Users\\RobProuse\\AppData\\Local\\Programs\\Microsoft VS Code\\bin\\code\" --wait | |
[alias] | |
ignore = update-index --assume-unchanged |
#requires -Version 2 -Modules posh-git | |
function Write-Theme { | |
param( | |
[bool] | |
$lastCommandFailed, | |
[string] | |
$with | |
) |
# Set the code page to the one used by PostGres | |
chcp 1252 | |
Import-Module posh-git # https://github.com/dahlbyk/posh-git | |
Import-Module oh-my-posh # https://github.com/JanDeDobbeleer/oh-my-posh | |
Import-Module PsGoogle # https://github.com/gfody/PsGoogle | |
Import-Module PSSudo # https://github.com/ecsousa/PSSudo | |
Import-Module DockerCompletion # https://github.com/matt9ucci/DockerCompletion | |
Import-Module Get-ChildItemColor # https://github.com/joonro/Get-ChildItemColor |
#==================================================== | |
# Setting up a new machine using BoxStarter | |
# 1.Install Windows 8.1 on a new machine. | |
# 2.Login. | |
# 3.Open a command prompt and enter the following: | |
# START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/rprouse/184f55de1e8cfe549d4b/raw/eab3ea82ce33963e2222507c9802e9012f556b7c/ChocolateyInstall.ps1 | |
#==================================================== | |
#==================================================== | |
# Boxstarter options |
# Set the code page to the one used by PostGres | |
chcp 1252 | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Import-Module PsGoogle | |
Import-Module PSSudo | |
$ThemeSettings.MyThemesLocation = [environment]::getfolderpath("mydocuments")+ '\PowerShell\PoshThemes' |
$OutputEncoding = [ System.Text.Encoding]::UTF8 | |
# Set up modules | |
Import-Module posh-git | |
Import-Module PSReadLine | |
Set-PSReadlineOption -HistorySaveStyle SaveAtExit | |
Import-Module PSLineEndings | |
Import-Module PsUrl | |
Import-Module PSColor | |
Import-Module PsGoogle |