You're viewing a comment by Peteris Krumins and its responses.

December 05, 2009, 07:53

Parag Dave, try this:

Put the following in .bash_profile (or system wide file /etc/profile)

TTY=$(tty | sed 's|/|_|g')
HISTFILE="~/.bash_history$TTY"

This should make HISTFILE to be ~/.bash_history_dev_tty1 for 1st, etc.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "lcd_42": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.