Sample Header Ad - 728x90

Why Mac Terminal remembers two consecutive commands when they are same?

14 votes
3 answers
1390 views
I started using Mac recently and before I used to work on Ubuntu. Suppose I run these commands one by one on my terminal: python3 main.py python3 main2.py python3 main2.py python3 main2.py python3 main2.py python3 main2.py python3 main2.py Now suppose I want to run python main.py again, so I will click the up key. I will need to click up key only twice on Ubuntu but 7 times on Mac. If two consecutive commands are same, then terminal should remember only one command instead of remembering two different commands. How can I make this happen on macOS?
Asked by aagrawal207 (243 rep)
Nov 19, 2017, 10:18 AM
Last activity: Oct 10, 2024, 05:24 PM