I am using pdl2 shell, how can I list all my commands history?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can find your history in $HOME/.perldl_hist
This may or may not be dependent on having Term::ReadLine::Gnu installed (which I have by default).
If you want access to your history within
pdl, then just use the up arrow key for the previous commands, or type ^R (control-r) then a text that you want to search back for (hitting ^r repeatedly for matches further back).EDIT: To find the history from within
pdl, do the following:The
$PERLDL::TERM->GetHistoryreturns an array of the current history. It’s just a regular array, so you can do whatever you like with it. For example, to find all of your recent histogram operations involving a piddle namedmypdl, you could do: