I like how you can autocomplete previous commands in MATLAB by typing a few words and pressing the key. The same works in python IDLE. Is there an equivalent of that in unix shells? If it helps, I’m using csh.
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 set an alias like so:
when you type
prev foo, it searches your history for all occurrences offooand spits out a list like so:where the first column is the command number, the second is the time it was executed and the last is the command. You can re-execute the previous command by typing
!<command number>