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
# See https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Disable 256 character path length limitation (MAX_PATH), see https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/The-Windows-10-default-path-length-limitation-MAX-PATH-is-256-characters.html | |
Function DisablePathLengthLimit { | |
Write-Host "Disable path length limitation (MAX_PATH)..." | |
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Type DWord -Value 1 | |
} | |
DisablePathLengthLimit |
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
// This file was initially generated by Windows Terminal 1.2.2381.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
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
# https://joonro.github.io/blog/posts/powershell-customizations.html | |
# https://hodgkins.io/ultimate-powershell-prompt-and-git-setup | |
Import-Module posh-docker | |
Write-Host "Imported posh-docker" | |
# https://github.com/dahlbyk/posh-git | |
Import-Module posh-git | |
Write-Host "Imported posh-git" |
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
[alias] | |
sync = "! git fetch && git remote prune origin && git branch --merged | tr -d '* ' | grep -vE '^\\s*master' | xargs -n1 -r git branch -d" |
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
https://github.com/ToxicFrog/Ligaturizer | |
https://github.com/tonsky/FiraCode | |
https://github.com/larsenwork/monoid | |
https://github.com/source-foundry/Hack |
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
[alias] | |
rename = "!moveit() { branchname=$(git rev-parse --abbrev-ref HEAD); git branch -m $branchname $1; git push origin :$branchname; git push --set-upstream origin $1; }; moveit" |
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
[alias] | |
outgoing = log --pretty=oneline --abbrev-commit --graph @{u}.. | |
incoming = !git fetch && git log --pretty=oneline --abbrev-commit --graph ..@{u} |
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
... | |
[ScriptBlock]$PostPrompt = { | |
Update-NavigationHistory $pwd.Path | |
} | |
## <Continue to add your own> | |
# Run profile |
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
const activeTimeoutIds = new Map(); | |
const _setTimeout = setTimeout; | |
setTimeout = function (callback, ms, ...args) { | |
const timeoutId = _setTimeout(() => { | |
callback(); | |
activeTimeoutIds.delete(timeoutId); | |
}, ms, ...args); | |
const stackTrace = (new Error()).stack; | |
activeTimeoutIds.set(timeoutId, 'ms: ' + ms + ', trace:' + stackTrace); | |
return timeoutId; |
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
[diff] | |
tool = vscode | |
[difftool "vscode"] | |
cmd = code --wait --diff $LOCAL $REMOTE |
NewerOlder