When I use history shortcuts in the terminal, such as !$ to get the last word of the previous line, those shortcuts do not get expanded in history. I thought that 'set autoexpand' in my cshrc file would do it, but apparently not.
For those who don't know what I'm talking about, here is an example:
50> touch file_with_very_long_name.txt
51> ll !$
(executes ll file_with_very_long_name.txt)
52> date
53> !51
(repeats command 51. If the history was saved expanded, I would get the equivalent of 'll file_with_very_long_name.txt'. Instead I get 'll date', because command 51 was saved as entered.)
Since I'm very used to expanded history, this keeps throwing me off. Any help would be appreciated.
For those who don't know what I'm talking about, here is an example:
50> touch file_with_very_long_name.txt
51> ll !$
(executes ll file_with_very_long_name.txt)
52> date
53> !51
(repeats command 51. If the history was saved expanded, I would get the equivalent of 'll file_with_very_long_name.txt'. Instead I get 'll date', because command 51 was saved as entered.)
Since I'm very used to expanded history, this keeps throwing me off. Any help would be appreciated.