5 ms·
Do you have any good resources on how to manage this? I've run into similar history management problems with `screen`.
by jmholla 4y ago
Do you have any good resources on how to manage this?
I've run into similar history management problems with `screen`.
- j33zusjuice 4y agoFor bash, and maybe zsh, I use this in a profile.d script to log history output. HISTTIMEFORMAT=“%F %T $(logname) $(pwd) “ if [ ! -d $HOME/.history ] then mkdir -p $HOME/.history fi PROMPT_COMMAND=‘echo “$(history 1)” >> $HOME/.history/$(date “+%F”) fi export PROMPT_COMMAND I suppose adding `readonly PROMPT_COMMAND` would be a good idea so no one overwrites it, but most people wouldn’t even think to look for it. I don’t think this would do much for handling screen history, though.
- v3ss0n 4y agoresh is my favorite
- v3ss0n 4y agoresh is my favorite https://github.com/curusarn/resh https://github.com/curusarn/resh