Skip to content

Instantly share code, notes, and snippets.

@justinAurand
justinAurand / pageant_autostart.cmd
Last active September 11, 2020 11:04 — forked from teleivo/pageant_autostart.cmd
Run pageant and add keys on Cmder startup
setlocal ENABLEDELAYEDEXPANSION
set ssh_key_home=%HOME%\.ssh\
set pageant_key_wildcard=*.ppk
echo Gathering keys matching %pageant_key_wildcard% in ^
%ssh_key_home%
rem Check if pageant is running
for /f "tokens=2 delims=," %%F in ('tasklist /nh /fi "imagename eq PAGEANT.EXE" /fo csv') do (