看板 Linux 關於我們 聯絡資訊
我習慣開很多個 terminal 或是 分頁處理不同事情 我用過ctrl + r 找 history command , 可是我發現在 terminal A 下的指令不會馬上讓 terminal B 知道~ 可能有什麼辦法可以讓它們 history 同步 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.204.69.151
jokester:zsh開一個選項就可以 bash要自己寫script . 你是用哪種? 01/12 15:25
stimim:http://ppt.cc/UG0p 我寫的bash script 01/12 16:22
stimim:每個bash process 有各自的history,會同步到公共的 01/12 16:25
gigigigi:bash 01/13 20:03
gigigigi:PROMPT_COMMAND="history -n; history -a" 01/13 20:05
gigigigi:網路上是找到這, …不過好像沒辦法定時update 01/13 20:05