mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Initial Commit
This commit is contained in:
commit
40e939bfb4
42 changed files with 4349 additions and 0 deletions
10
win/.wslconfig
Normal file
10
win/.wslconfig
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[wsl2]
|
||||
networkingMode=mirrored
|
||||
dnsTunneling=true
|
||||
firewall=true
|
||||
autoProxy=true
|
||||
|
||||
[experimental]
|
||||
# requires dnsTunneling but are also OPTIONAL
|
||||
bestEffortDnsParsing=true
|
||||
useWindowsDnsCache=true
|
||||
99
win/Microsoft.PowerShell_profile.ps1
Normal file
99
win/Microsoft.PowerShell_profile.ps1
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
### Variables ###
|
||||
|
||||
$DOTFILES = "$HOME\Documents\.dotfiles"
|
||||
|
||||
### PSReadLine ###
|
||||
|
||||
Set-PSReadLineOption -EditMode vi # Vi Keybindings
|
||||
Set-PSReadLineOption -PredictionViewStyle ListView # Prediction View Style
|
||||
Set-PSReadLineOption -PredictionSource HistoryAndPlugin # Prediction Source
|
||||
Set-PSReadLineOption -ContinuationPrompt "`e[36m CR > " # Continuation Prompt
|
||||
|
||||
### Keybindings ###
|
||||
|
||||
Set-PSReadLineKeyHandler -Chord "Ctrl+f" -Function ForwardWord
|
||||
|
||||
### Navigator ###
|
||||
|
||||
# Relative navigation #
|
||||
|
||||
# ${function:~} = { Set-Location -Path ~ } cd is better
|
||||
${function:...} = { Set-Location -Path ..\.. }
|
||||
${function:....} = { Set-Location -Path ..\..\.. }
|
||||
${function:.....} = { Set-Location -Path ..\..\..\.. }
|
||||
${function:......} = { Set-Location -Path ..\..\..\..\.. }
|
||||
|
||||
# Absolute navigation #
|
||||
|
||||
${function:docs} = { Set-Location -Path ~\Documents }
|
||||
${function:down} = { Set-Location -Path ~\Downloads }
|
||||
${function:dt} = { Set-Location -Path ~\Desktop }
|
||||
${function:mytmp} = { Set-Location -Path ~\Temporary }
|
||||
${function:one} = { Set-Location -Path ~\OneDrive }
|
||||
${function:doku} = { Set-Location -Path ~\MyDocuments && Get-ChildItem }
|
||||
|
||||
### Aliases ###
|
||||
|
||||
# Shell Equivalents #
|
||||
|
||||
Set-Alias "touch" "New-Item"
|
||||
Set-Alias "open" "explorer.exe"
|
||||
|
||||
# Dev #
|
||||
|
||||
${function:shcfg} = { code $PROFILE }
|
||||
${function:reload} = { Invoke-Expression $PROFILE }
|
||||
${function:csi} = { dotnet script }
|
||||
${function:pulldots} = { Set-Location -Path $DOTFILES && git pull }
|
||||
Set-Alias "pwshcfg" "shcfg"
|
||||
Set-Alias "python3" "python"
|
||||
Set-Alias "pip3" "pip"
|
||||
Set-Alias "py" "python"
|
||||
Set-Alias "cl" "clang"
|
||||
Set-Alias "cl++" "clang++"
|
||||
Set-Alias "clang" "clang -std=c99"
|
||||
Set-Alias "clang++" "clang++ -std=c++2b"
|
||||
|
||||
# Editors #
|
||||
|
||||
Set-Alias "v" "nvim"
|
||||
Set-Alias "c" "code"
|
||||
Set-Alias "gvi" "neovide"
|
||||
|
||||
# Miscs #
|
||||
|
||||
Set-Alias mcd CreateAndSet-Directory
|
||||
|
||||
### Functions ###
|
||||
|
||||
function tc { param ( [string] $filename)
|
||||
New-Item $filename && code $filename
|
||||
}
|
||||
|
||||
function tv { param ( [string] $filename)
|
||||
New-Item $filename && nvim $filename
|
||||
}
|
||||
|
||||
function cdls { param( [string] $dirname)
|
||||
Set-Location $dirname && Get-ChildItem
|
||||
}
|
||||
|
||||
|
||||
|
||||
### Modules ###
|
||||
|
||||
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||
if (Test-Path($ChocolateyProfile)) { Import-Module "$ChocolateyProfile" }
|
||||
|
||||
Import-Module -Name Microsoft.WinGet.CommandNotFound #f45873b3-b655-43a6-b217-97c00aa0db58
|
||||
|
||||
Import-Module CompletionPredictor
|
||||
|
||||
### Misc ###
|
||||
|
||||
#region conda initialize
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
If (Test-Path "$HOME\miniconda3\Scripts\conda.exe") {
|
||||
(& "$HOME\miniconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | Where-Object{$_} | Invoke-Expression
|
||||
}
|
||||
#endregion
|
||||
468
win/WindowsTerminal.json
Normal file
468
win/WindowsTerminal.json
Normal file
|
|
@ -0,0 +1,468 @@
|
|||
{
|
||||
"$help": "https://aka.ms/terminal-documentation",
|
||||
"$schema": "https://aka.ms/terminal-profiles-schema",
|
||||
"actions":
|
||||
[
|
||||
{
|
||||
"command": "unbound",
|
||||
"keys": "alt+shift+plus"
|
||||
},
|
||||
{
|
||||
"command": "unbound",
|
||||
"keys": "alt+up"
|
||||
},
|
||||
{
|
||||
"command": "unbound",
|
||||
"keys": "alt+down"
|
||||
},
|
||||
{
|
||||
"command": "unbound",
|
||||
"keys": "alt+right"
|
||||
},
|
||||
{
|
||||
"command": "unbound",
|
||||
"keys": "alt+left"
|
||||
},
|
||||
{
|
||||
"command": "unbound",
|
||||
"keys": "alt+shift+up"
|
||||
},
|
||||
{
|
||||
"command": "unbound",
|
||||
"keys": "alt+shift+down"
|
||||
},
|
||||
{
|
||||
"command": "unbound",
|
||||
"keys": "alt+shift+right"
|
||||
},
|
||||
{
|
||||
"command": "unbound",
|
||||
"keys": "alt+shift+left"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "copy",
|
||||
"singleLine": false
|
||||
},
|
||||
"keys": "ctrl+c"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "moveFocus",
|
||||
"direction": "up"
|
||||
},
|
||||
"keys": "ctrl+k"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "resizePane",
|
||||
"direction": "up"
|
||||
},
|
||||
"keys": "ctrl+shift+k"
|
||||
},
|
||||
{
|
||||
"command": "paste",
|
||||
"keys": "ctrl+v"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "splitPane",
|
||||
"split": "auto",
|
||||
"splitMode": "duplicate"
|
||||
},
|
||||
"keys": "alt+shift+d"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "resizePane",
|
||||
"direction": "left"
|
||||
},
|
||||
"keys": "ctrl+shift+h"
|
||||
},
|
||||
{
|
||||
"command": "find",
|
||||
"keys": "ctrl+shift+f"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "moveFocus",
|
||||
"direction": "down"
|
||||
},
|
||||
"keys": "ctrl+j"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "splitPane",
|
||||
"split": "right"
|
||||
},
|
||||
"keys": "alt+shift+/"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "moveFocus",
|
||||
"direction": "right"
|
||||
},
|
||||
"keys": "ctrl+l"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "moveFocus",
|
||||
"direction": "left"
|
||||
},
|
||||
"keys": "ctrl+h"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "resizePane",
|
||||
"direction": "down"
|
||||
},
|
||||
"keys": "ctrl+shift+j"
|
||||
},
|
||||
{
|
||||
"command":
|
||||
{
|
||||
"action": "resizePane",
|
||||
"direction": "right"
|
||||
},
|
||||
"keys": "ctrl+shift+l"
|
||||
}
|
||||
],
|
||||
"autoHideWindow": false,
|
||||
"centerOnLaunch": false,
|
||||
"copyFormatting": "none",
|
||||
"copyOnSelect": false,
|
||||
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
|
||||
"language": "zh-Hans",
|
||||
"minimizeToNotificationArea": false,
|
||||
"newTabMenu":
|
||||
[
|
||||
{
|
||||
"type": "remainingProfiles"
|
||||
}
|
||||
],
|
||||
"profiles":
|
||||
{
|
||||
"defaults":
|
||||
{
|
||||
"colorScheme": "One Half Dark",
|
||||
"font":
|
||||
{
|
||||
"face": "CaskaydiaCove Nerd Font"
|
||||
}
|
||||
},
|
||||
"list":
|
||||
[
|
||||
{
|
||||
"backgroundImage": null,
|
||||
"colorScheme": "One Half Dark",
|
||||
"experimental.retroTerminalEffect": false,
|
||||
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
|
||||
"hidden": false,
|
||||
"name": "PowerShell",
|
||||
"opacity": 100,
|
||||
"scrollbarState": "hidden",
|
||||
"source": "Windows.Terminal.PowershellCore"
|
||||
},
|
||||
{
|
||||
"colorScheme": "One Half Dark",
|
||||
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
|
||||
"hidden": false,
|
||||
"name": "Ubuntu",
|
||||
"source": "Windows.Terminal.Wsl"
|
||||
},
|
||||
{
|
||||
"guid": "{3c5d580b-1c52-55ce-89c9-57119457e5a7}",
|
||||
"hidden": false,
|
||||
"name": "CMD VS 2022",
|
||||
"source": "Windows.Terminal.VisualStudio"
|
||||
},
|
||||
{
|
||||
"guid": "{bc7a2d0e-eee9-5401-ae36-b35fa60deb22}",
|
||||
"hidden": false,
|
||||
"name": "PowerShell VS2022",
|
||||
"source": "Windows.Terminal.VisualStudio"
|
||||
},
|
||||
{
|
||||
"colorScheme": "Campbell",
|
||||
"commandline": "\"C:\\Users\\citoy\\AppData\\Local\\Microsoft\\WindowsApps\\Microsoft.PowerShell_8wekyb3d8bbwe\\pwsh.exe\"",
|
||||
"elevate": true,
|
||||
"guid": "{6693d425-c727-46ba-8739-542bcf18769b}",
|
||||
"hidden": false,
|
||||
"icon": "ms-appx:///ProfileIcons/pwsh.png",
|
||||
"name": "PowerShell Administrator",
|
||||
"startingDirectory": "%USERPROFILE%"
|
||||
},
|
||||
{
|
||||
"commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
|
||||
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
|
||||
"hidden": false,
|
||||
"name": "Windows PowerShell"
|
||||
},
|
||||
{
|
||||
"commandline": "%SystemRoot%\\System32\\cmd.exe",
|
||||
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
|
||||
"hidden": false,
|
||||
"name": "\u547d\u4ee4\u63d0\u793a\u7b26"
|
||||
},
|
||||
{
|
||||
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
|
||||
"hidden": false,
|
||||
"name": "Azure Cloud Shell",
|
||||
"source": "Windows.Terminal.Azure"
|
||||
},
|
||||
{
|
||||
"guid": "{58ad8b0c-3ef8-5f4d-bc6f-13e4c00f2530}",
|
||||
"hidden": false,
|
||||
"name": "Debian",
|
||||
"source": "Windows.Terminal.Wsl"
|
||||
}
|
||||
]
|
||||
},
|
||||
"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": "#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": "#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-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"
|
||||
}
|
||||
],
|
||||
"tabWidthMode": "compact",
|
||||
"themes": [],
|
||||
"useAcrylicInTabRow": true,
|
||||
"windowingBehavior": "useNew"
|
||||
}
|
||||
16
win/neovide.toml
Normal file
16
win/neovide.toml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
fork = false
|
||||
frame = "full"
|
||||
idle = true
|
||||
maximized = false
|
||||
no-multigrid = false
|
||||
srgb = false
|
||||
tabs = true
|
||||
theme = "auto"
|
||||
title-hidden = true
|
||||
vsync = false
|
||||
wsl = true
|
||||
neovim-bin = "/opt/nvim-linux64/bin/nvim"
|
||||
|
||||
[font]
|
||||
normal = ["CaskaydiaCove Nerd Font"] # Will use the bundled Fira Code Nerd Font by default
|
||||
size = 14.0
|
||||
8
win/readme.md
Normal file
8
win/readme.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Configs for Windows
|
||||
|
||||
## Navigator
|
||||
|
||||
- [WSL Config](./.wslconfig)
|
||||
- [Windows Terminal Config](./WindowsTerminal.json)
|
||||
- [PowerShell Config](./Microsoft.PowerShell_profile.ps1)
|
||||
- [Neovide](./neovide.toml)
|
||||
Loading…
Add table
Add a link
Reference in a new issue