如何在 Linux 中配置命令提示符以显示当前目录? [英] How to you configure the command prompt in Linux to show current directory?
本文介绍了如何在 Linux 中配置命令提示符以显示当前目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 Linux 中配置命令提示符以显示当前目录?我希望能够将此设置放在 .zshrc 文件中.
How to you configure the command prompt in Linux to show current directory? I want to be able to put settings for this in the .zshrc file.
推荐答案
你可以把它放到你的 .zshrc
文件中
You can place this to your .zshrc
file
export PS1="%d %% "
%d
表示 CWD
有关更多详细信息,请访问此处例如
For more details go here for example
这篇关于如何在 Linux 中配置命令提示符以显示当前目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文