【问题标题】:Is there a way to see a print out of irb history?有没有办法查看irb历史的打印?
【发布时间】:2017-04-19 04:15:12
【问题描述】:

我想看看我在 irb 中写了什么。我的终端已经过了滚动点来查看它。 有没有查看irb输入的git命令?

【问题讨论】:

    标签: git irb


    【解决方案1】:

    应该是irb history

    确保您的 git bash homedir ~ 有一个 ~/.irbrc 文件,其中包含:

    require 'irb/ext/save-history'
    #History configuration
    IRB.conf[:SAVE_HISTORY] = 100
    IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
    

    那么你应该可以阅读~/.irb-save-history中的历史了。
    见“rbenv irb history is not saving

    【讨论】:

      猜你喜欢
      • 2012-06-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-18
      • 2021-07-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多