Skip to content

Instantly share code, notes, and snippets.

@daichan4649
Last active September 22, 2025 03:37
Show Gist options
  • Save daichan4649/3256e599d3807bda17ec84aeaa86555f to your computer and use it in GitHub Desktop.
Save daichan4649/3256e599d3807bda17ec84aeaa86555f to your computer and use it in GitHub Desktop.
[WSL] Claude Code slash command: Fetch and display latest screenshot from WSL Screenshots directory

最新スクリーンショット取得

設定

SCREENSHOT_DIR="/mnt/c/Users/[username]/Pictures/Screenshots"

最新のスクリーンショットファイルを自動取得して表示します。

手順:

  1. ${SCREENSHOT_DIR} ディレクトリから最新のファイルを特定
  2. 最新のスクリーンショットファイルを読み込んで表示

具体的な実装:

  • ls -lt "${SCREENSHOT_DIR}" | head -1 で最新ファイルを取得
  • そのファイルをReadツールで読み込み表示
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment