Skip to content

Instantly share code, notes, and snippets.

@hymkor
Last active August 18, 2025 17:20
Show Gist options
  • Save hymkor/39cbf36daceb547cdd07fa700e305781 to your computer and use it in GitHub Desktop.
Save hymkor/39cbf36daceb547cdd07fa700e305781 to your computer and use it in GitHub Desktop.
ファイルの中に `#gist (gistのURL)` と書いておくと `upgist ファイル名` だけでローカルファイルを gist へ push してくれるバッチファイル(URLを毎回書かなくてよいだけ。要 goawk
@goawk "/^[#@]?gist/{ system(sprintf('gh gist edit %%s %%s\n',$2,FILENAME)) }" %1 %2 %3 %4 %5 %6 %7 %8 %9
@exit /b %ERRORLEVEL%
#gist https://gist.github.com/hymkor/39cbf36daceb547cdd07fa700e305781
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment