Skip to content

Instantly share code, notes, and snippets.

@DavidMCarek
DavidMCarek / cmderAliases.txt
Last active June 1, 2021 13:53
All of my cmder aliases
;= @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 .
gl=git log --oneline --all --graph --decorate $*
ls=ls --color
lsa=ls -a --color
@DavidMCarek
DavidMCarek / vimrc.txt
Last active June 1, 2021 13:44
My vimrc file
set directory=.,$TEMP
syntax on
filetype plugin on
noremap U <C-r>
noremap j h
noremap k j
noremap l k
noremap ; l
inoremap jk <Esc>
set nu
{
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"git.path": "C:\\cmder\\vendor\\git-for-windows\\git-cmd.exe",
"vim.insertModeKeyBindings": [
{
"before" : ["j","k"],
"after" : ["<Esc>"]
}
],
@DavidMCarek
DavidMCarek / gprune.ps1
Created June 1, 2021 13:56
Cleanup local git branches that have been deleted on remote using powershell.
git fetch -p | Write-Host
git branch -vv | where {$_ -match '\[origin/.*: gone\]'} | foreach {git branch -D ($_.split(" ", [StringSplitOptions]'RemoveEmptyEntries')[0])} | Write-Host