reset sync history terminal - Linux

Table of Contents

我習慣開很多個 terminal 或是 分頁處理不同事情

我用過ctrl + r 找 history command , 可是我發現在 terminal A 下的指令不會馬上讓
terminal B 知道~

可能有什麼辦法可以讓它們 history 同步

謝謝

--

All Comments

Tracy avatarTracy2014-01-16
zsh開一個選項就可以 bash要自己寫script . 你是用哪種?
Lily avatarLily2014-01-19
http://ppt.cc/UG0p 我寫的bash script
Irma avatarIrma2014-01-20
每個bash process 有各自的history,會同步到公共的
Joe avatarJoe2014-01-23
bash
Hamiltion avatarHamiltion2014-01-24
PROMPT_COMMAND="history -n; history -a"
網路上是找到這, …不過好像沒辦法定時update