JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

给ZSH 添加时间戳

发布时间 2023-06-13 18:10:18作者: 可是我爱你啊

Add the following snippet at the bottom of ~/.zshrc file.

Option 1 - Just time

RPROMPT='[%D{%L:%M:%S}] '$RPROMPT

Option 2 - Date and time


RPROMPT="[%D{%f/%m/%y} | %D{%L:%M:%S}]"

When you are done, run $ source ~/.zshrc to see the effect. If it doesn't work, quit iTerm2 and open it again.

转自:How to add timestamp on right hand side of ZSH / iTerm2 terminal prompt?

    本栏目推荐文章
  • 和利时MACS6通过dat文件实现任意时间范围与测点的历史数据提取与科研分析
  • 阅读-《所谓时间管理就是选择性放弃》
  • SQL SERVER日期时间转字符串
  • Mysql时间常用函数
  • Unity 获取当前系统时间并在UI界面中显示
  • Java日期时间处理详解
  • 【GUI软件】抖音搜索结果批量采集,支持多个关键词、排序方式、发布时间筛选等!
  • jenkins时间相差8小时解决
  • [RFC6238] TOTP: 基于时间的一次性密码生成算法
  • Dating Java8系列之新的日期和时间
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们