C.W.K.
Stream
Lesson 02 of 10 · published

인터랙티브 REPL — Theme, History, /help

~12 min · gemini, interactive, repl, history

Level 0🌱 입문자
0 XP0/70 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

Gemini TUI

기본 gemini 가 streaming REPL 떨어뜨려. composer 가 plain text + 빌트인 명령어 몇 개 받음: /help, /clear, /compact, /cost, /theme, /exit. multi-line prompt 는 Shift+Enter; ↑/↓ 가 history; Ctrl+C 인터럽트.

Print 모드 (gemini -p) 가 non-interactive 등가 — 단발, stdout, exit. Claude Code 의 -p 와 Codex 의 exec 와 같은 합성성.

Code

Three modes side by side·bash
# Interactive REPL (default)
gemini

# Print mode
gemini -p "explain the auth flow in this repo"

# Compose with shell
git diff HEAD~1 | gemini -p "review for bugs"

# History persists across sessions in ~/.gemini/history.jsonl
TUI shortcuts·text
↑/↓          previous / next prompt
Shift+Enter  newline in composer
Ctrl+C       interrupt current operation
Ctrl+D       exit
/clear       reset conversation
/compact     squeeze history
/theme       change color scheme
/exit        quit

External links

Exercise

Gemini REPL 에서 진짜 세션 run. /compact 한 번 이상 사용. print 모드로 같은 query 시도. 본능적으로 어느 모드 먼저 잡았는지 적어.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.