V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
gavingeng

如何备份zsh的历史记录

  •  
  •   gavingeng · Nov 1, 2012 · 3960 views
    This topic created in 4931 days ago, the information mentioned may be changed or developed.
    之前用bash,用shell写过一个备份前一天history的脚本,配置在cron中每天凌晨跑,之后用上了zsh,现在突然想翻下之前操作过的某一个命令,翻历史记录文件,发现在使用zsh之后,.bash_history就再也没变过,发现在$HOME下有个.zsh_history目录,里面都按目录分好了,但不知哪些是需要备份的,请各位指教!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2508 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 258ms · UTC 08:40 · PVG 16:40 · LAX 01:40 · JFK 04:40
    ♥ Do have faith in what you're doing.