Timeline for Keeping history per working directory (cf. per shell session)
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 16, 2015 at 5:26 | comment | added | Chris Page | Don't export HISTFILE. There's no reason to export it to other programs, and ~/.bashrc is executed for every interactive bash process, so your code for setting it is going to be run in every bash anyway. In general, if a shell-defined variable isn't exported by default, you rarely should export it. | |
| Jun 2, 2015 at 15:15 | comment | added | sohocoke | I realise my question had omitted a wish / requirement, sorry for the missing detail. Namely: I'd prefer not to have to remember to use aliases / functions; i.e. the scoping should work as an add-on to the way I normally interact with the shell. | |
| May 21, 2015 at 15:12 | history | answered | apaul | CC BY-SA 3.0 |