Spakman / urchin

A Unix shell for Ruby programmers.
http://spakman.github.com/urchin/
GNU General Public License v3.0
36 stars 1 forks source link

Track location of command execution in history #13

Closed brandondrew closed 11 years ago

brandondrew commented 11 years ago

When looking back through command history (not simply to repeat a recent command, but when excavating deeper into the past to figure out how you solved a problem that you now face again) it is often useful to know where you were when you executed a command. This would be much easier to reconstruct if the current working directory was available for each command, rather than only available by looking at cd commands previously made.

This could be implemented by itself, or it could be done with the issue "Track shell history in a database", which would (I think) make it much easier to implement, and make changes and configurations to history tracking cakewalk, since every piece of info tracked as part of history is basically another field, and the more flexibility offered to the user (in terms of what to include and what to exclude from history) the more complicated it gets to the developer of the shell, leaving them to basically build database functions from scratch, when they would more easily just use a database. More details in that issue.

Spakman commented 11 years ago

A great idea! Hopefully we can cover this off with any work on issue #14.

Spakman commented 11 years ago

This was able to be implemented in #14 :)!