Skip to content

Instantly share code, notes, and snippets.

View mattdkerr's full-sized avatar

Matt Kerr mattdkerr

View GitHub Profile
@mattdkerr
mattdkerr / user_aliases.cmd
Created July 19, 2023 18:53
cmder aliases for exa codium and bat
;= @echo off
;= rem Call DOSKEY and use this file as the macrofile
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0%
;= rem In batch mode, jump to the end of the file
;= goto:eof
;= Add aliases below here
e.=explorer .
log=git log --oneline --all --graph --decorate $*
amend=git commit --amend $*
rebase=git rebase -i $*
@mattdkerr
mattdkerr / cargo-config
Created July 17, 2023 20:41
.cargo/config for corp or vpn
[http]
cainfo = "<ca-bundle>"
check-revoke = false
[net]
git-fetch-with-cli = true
@mattdkerr
mattdkerr / git-config-bc4-wsl2
Last active July 17, 2023 20:43
Use BC4 in Windows, launched from WSL2
[diff]
tool = bc
[difftool "bc"]
cmd=\"/mnt/c/Program Files/Beyond Compare 4/BComp.exe\" "$(wslpath -aw $LOCAL)" "$(wslpath -aw $REMOTE)"
[mergetool "bc"]
cmd=\"/mnt/c/Program Files/Beyond Compare 4/BComp.exe\" "$(wslpath -aw $LOCAL)" "$(wslpath -aw $REMOTE)" "$(wslpath -aw $BASE)" "$(wslpath -aw $MERGED)"
[merge]
tool = bc
@mattdkerr
mattdkerr / Microsoft.PowerShell_profile.ps1
Created June 16, 2023 18:22
Powershell 7 for OMP, Exa, Zoxide
Invoke-Expression (& { (zoxide init powershell | Out-String) })
if (Test-Path alias:ls*) { Remove-Alias ls }
function l { exa --git --icons --group-directories-first --ignore-glob="ntuser*|NTUSER*" --grid $args }
function ls { exa --git --icons --group-directories-first --ignore-glob="ntuser*|NTUSER*" --grid $args }
function ll { exa --git --icons --group-directories-first --ignore-glob="ntuser*|NTUSER*" -l $args }
function .. { cd .. }
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
@mattdkerr
mattdkerr / profile.json
Last active January 17, 2020 00:56
Windows Terminal - Clink or Git Bash or Yori
// 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",
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"profiles": [
{
"tabTitle": "Git Bash",
@mattdkerr
mattdkerr / git_peek.lua
Last active May 23, 2024 06:18
Cmder git status peek replacement file
-- default script for clink, called by init.bat when injecting clink
-- !!! THIS FILE IS OVERWRITTEN WHEN CMDER IS UPDATED
-- !!! Use "%CMDER_ROOT%\config\<whatever>.lua" to add your lua startup scripts
-- luacheck: globals clink
-- At first, load the original clink.lua file
-- this is needed as we set the script path to this dir and therefore the original
-- clink.lua is not loaded.