Remove Windows dotfiles

This commit is contained in:
2024-04-04 16:12:27 +01:00
parent 4e2bcade40
commit cb4f8e8631
17 changed files with 0 additions and 551 deletions

View File

@@ -1,2 +0,0 @@
[gpg]
program = c:/Program Files (x86)/GnuPG/bin/gpg.exe

View File

@@ -1,4 +0,0 @@
PSDotFiles Metadata
-------------------
This folder contains the metadata for PSDotFiles and isn't a stow package.

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>Bash Profile</FriendlyName>
<Detection>
<Method>Static</Method>
<Availability>NeverInstall</Availability>
</Detection>
</Component>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>Linux ~/bin scripts</FriendlyName>
<Detection>
<Method>Static</Method>
<Availability>NeverInstall</Availability>
</Detection>
</Component>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>Git (Windows Config)</FriendlyName>
<Detection>
<Method>FindInPath</Method>
<FindInPath>git</FindInPath>
</Detection>
</Component>

View File

@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>GPG</FriendlyName>
<BasePath>.gnupg</BasePath>
<Detection>
<Method>FindInPath</Method>
<FindInPath>gpg.exe</FindInPath>
</Detection>
<InstallPath>
<SpecialFolder>ApplicationData</SpecialFolder>
<Destination>gnupg</Destination>
</InstallPath>
</Component>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>IRSSI</FriendlyName>
<Detection>
<Method>Static</Method>
<Availability>NeverInstall</Availability>
</Detection>
</Component>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>Mutt</FriendlyName>
<Detection>
<Method>Static</Method>
<Availability>NeverInstall</Availability>
</Detection>
</Component>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>Raycast Profile</FriendlyName>
<Detection>
<Method>Static</Method>
<Availability>NeverInstall</Availability>
</Detection>
</Component>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>Common Shell Profile</FriendlyName>
<Detection>
<Method>Static</Method>
<Availability>NeverInstall</Availability>
</Detection>
</Component>

View File

@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>SSH</FriendlyName>
<Detection>
<Method>FindInPath</Method>
</Detection>
</Component>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>Tmux</FriendlyName>
<Detection>
<Method>Static</Method>
<Availability>NeverInstall</Availability>
</Detection>
</Component>

View File

@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>Windows Terminal</FriendlyName>
<Detection>
<Method>Automatic</Method>
<MatchPattern>Microsoft.WindowsTerminal</MatchPattern>
</Detection>
<InstallPath>
<SpecialFolder>LocalApplicationData</SpecialFolder>
<Destination>Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState</Destination>
</InstallPath>
</Component>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Component xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/ralish/PSDotFiles/master/Metadata.xsd">
<FriendlyName>zsh</FriendlyName>
<Detection>
<Method>Static</Method>
<Availability>NeverInstall</Availability>
</Detection>
</Component>

View File

@@ -1,101 +0,0 @@
# Add a SSH key to SSH-Agent
function Add-SshKey {
if ($args.Count -gt 0) {
$filename = "$ENV:USERPROFILE\.ssh\id_ed25519_" + $args[0]
if (!(Test-Path $filename -PathType Leaf)) {
Write-Error "$filename does not exist."
}
else {
Invoke-Expression "ssh-add $filename"
}
}
else {
Invoke-Expression "ssh-add -L"
}
}
function Clear-SshKeys {
Invoke-Expression "ssh-add -D"
}
function Update-Dotfiles {
Join-Path $HOME '.dotfiles' | Push-Location
Invoke-Expression -Command "git pull --rebase --autostash"
Pop-Location
}
function Send-0x0 {
[CmdletBinding()]
PARAM
(
[string][parameter(Mandatory = $true)][ValidateNotNullOrEmpty()]$File,
[Uri]$Service = 'http://0x0.st/'
)
BEGIN {
if (-not (Test-Path $File)) {
$errorMessage = ("File {0} missing or unable to read." -f $File)
$exception = New-Object System.Exception $errorMessage
$errorRecord = New-Object System.Management.Automation.ErrorRecord $exception, 'MultipartFormDataUpload', ([System.Management.Automation.ErrorCategory]::InvalidArgument), $File
$PSCmdlet.ThrowTerminatingError($errorRecord)
}
}
PROCESS {
Add-Type -AssemblyName System.Net.Http
Add-Type -AssemblyName System.Web
$httpClientHandler = New-Object System.Net.Http.HttpClientHandler
$httpClient = New-Object System.Net.Http.Httpclient $httpClientHandler
$packageFileStream = New-Object System.IO.FileStream @((Resolve-Path $File), [System.IO.FileMode]::Open)
$contentDispositionHeaderValue = New-Object System.Net.Http.Headers.ContentDispositionHeaderValue "form-data"
$contentDispositionHeaderValue.Name = "file"
$contentDispositionHeaderValue.FileName = (Split-Path $File -leaf)
$streamContent = New-Object System.Net.Http.StreamContent $packageFileStream
$streamContent.Headers.ContentDisposition = $contentDispositionHeaderValue
$mimeType = [System.Web.MimeMapping]::GetMimeMapping($File)
if ($mimeType) {
$ContentType = $mimeType
}
else {
$ContentType = "application/octet-stream"
}
$streamContent.Headers.ContentType = New-Object System.Net.Http.Headers.MediaTypeHeaderValue $ContentType
$content = New-Object System.Net.Http.MultipartFormDataContent
$content.Add($streamContent)
try {
$response = $httpClient.PostAsync($Service, $content).Result
if (!$response.IsSuccessStatusCode) {
$responseBody = $response.Content.ReadAsStringAsync().Result
$errorMessage = "Status code {0}. Reason {1}. Server reported the following message: {2}." -f $response.StatusCode, $response.ReasonPhrase, $responseBody
throw [System.Net.Http.HttpRequestException] $errorMessage
}
$responseBody = $response.Content.ReadAsStringAsync().Result
return "URL: {0}" -f $responseBody
}
catch [Exception] {
$PSCmdlet.ThrowTerminatingError($_)
}
finally {
if ($null -ne $httpClient) {
$httpClient.Dispose()
}
if ($null -ne $response) {
$response.Dispose()
}
}
}
END { }
}
$DotFilesPath = Join-Path $HOME '.dotfiles'
$DotFilesAutodetect = $true
$DotFilesAllowNestedSymlinks = $true
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox

View File

@@ -1,10 +0,0 @@
# Install required modules
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSDotFiles -Scope CurrentUser
# Fix git, SSH and GPG to external executables
[Environment]::SetEnvironmentVariable('GIT_SSH', "$ENV:SystemRoot\System32\OpenSSH\ssh.exe", 'User')
[Environment]::SetEnvironmentVariable('GNUPGHOME', "$ENV:APPDATA\gnupg", 'User')
Invoke-Expression "git config --global gpg.program 'c:/Program Files (x86)/GnuPG/bin/gpg.exe'"

View File

@@ -1,318 +0,0 @@
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
},
"keys": "ctrl+c"
},
{
"command": "find",
"keys": "ctrl+shift+f"
},
{
"command": "paste",
"keys": "ctrl+v"
},
{
"command":
{
"action": "splitPane",
"split": "auto",
"splitMode": "duplicate"
},
"keys": "alt+shift+d"
}
],
"copyFormatting": "none",
"copyOnSelect": true,
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
{
"defaults": {},
"list":
[
{
"acrylicOpacity": 0.089999999999999997,
"antialiasingMode": "grayscale",
"bellStyle": "window",
"colorScheme": "Ace Palenight",
"commandline": "powershell.exe",
"cursorShape": "vintage",
"experimental.retroTerminalEffect": false,
"font":
{
"face": "Input Mono",
"size": 9
},
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"hidden": false,
"intenseTextStyle": "all",
"name": "Windows PowerShell",
"useAcrylic": false
}
]
},
"schemes":
[
{
"background": "#282C35",
"black": "#7F7F7F",
"blue": "#6699CC",
"brightBlack": "#7F7F7F",
"brightBlue": "#6699CC",
"brightCyan": "#5FB3B3",
"brightGreen": "#99C794",
"brightPurple": "#B4009E",
"brightRed": "#E15A60",
"brightWhite": "#D4D4D4",
"brightYellow": "#FFE2A9",
"cursorColor": "#B6BCC4",
"cyan": "#5FB3B3",
"foreground": "#D4D4D4",
"green": "#99C794",
"name": "Ace Palenight",
"purple": "#881798",
"red": "#E15A60",
"selectionBackground": "#FFFFFF",
"white": "#D4D4D4",
"yellow": "#FFE2A9"
},
{
"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": "#292D3E",
"black": "#434758",
"blue": "#82AAFF",
"brightBlack": "#434758",
"brightBlue": "#9CC4FF",
"brightCyan": "#E3F7FF",
"brightGreen": "#DDFFA7",
"brightPurple": "#E1ACFF",
"brightRed": "#FF8B92",
"brightWhite": "#FEFEFE",
"brightYellow": "#FFE585",
"cursorColor": "#FFFFFF",
"cyan": "#89DDFF",
"foreground": "#959DCB",
"green": "#C3E88D",
"name": "Material Palenight",
"purple": "#C792EA",
"red": "#F07178",
"selectionBackground": "#FFFFFF",
"white": "#D0D0D0",
"yellow": "#FFCB6B"
},
{
"background": "#282C34",
"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": "#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"
}
],
"tabSwitcherMode": "mru",
"tabWidthMode": "titleLength"
}