Skip to content

Commit 15adb07

Browse files
committed
feat: display cwd name in prompt
Signed-off-by: Richard Chien <[email protected]>
1 parent 6b035a7 commit 15adb07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kimi_cli/ui/shell/prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ def _render_message(self) -> FormattedText:
591591
symbol = PROMPT_SYMBOL if self._mode == PromptMode.AGENT else PROMPT_SYMBOL_SHELL
592592
if self._mode == PromptMode.AGENT and self._thinking:
593593
symbol = PROMPT_SYMBOL_THINKING
594-
return FormattedText([("bold", f"{getpass.getuser()}{symbol} ")])
594+
return FormattedText([("bold", f"{getpass.getuser()}@{Path.cwd().name}{symbol} ")])
595595

596596
def _apply_mode(self, event: KeyPressEvent | None = None) -> None:
597597
# Apply mode to the active buffer (not the PromptSession itself)

0 commit comments

Comments
 (0)