SteVwonder / dotfiles

My OS X / Ubuntu dotfiles.
MIT License
0 stars 0 forks source link

hist: improve storage format #29

Open SteVwonder opened 2 years ago

SteVwonder commented 2 years ago

Currently the time is pretty inscrutable and it is hard to easily copy/paste the command since there is no space between the time and the command:

❯ hist find                                                                                                                                         11:55:55 ()
/Users/herbein1/.history/2021/10/07/09-59-37_ttys004.hist
4:: 1633631409:0;find ./ -maxdepth 1
5:: 1633631411:0;find ./ -maxdepth 1 -type d
6:: 1633631416:0;man find

Also maybe a good time to look into more comprehensive shell history options (maybe ones that also store the directory that the command was run in)

SteVwonder commented 1 year ago

Also support fish shell

EDIT: looks like fish already has a solid history command: https://fishshell.com/docs/current/cmds/history.html