终端显示完整路径 MacOS

mowen 2026-08-29 3

nano ~/.zshrc
# %d 表示完整绝对路径,%~ 会将 $HOME 缩写为 ~
PROMPT='%n@%m %d %# '
source ~/.zshrc


最新回复 (0)
返回
发新帖
X