I currently have iTerm version 3.4.12.
In my old work computer I had a different version that would autocomplete a partial command based on the previous commands I had typed when pressing the up key, for example if at some point I ran:
cd Desktop
And then I went back to the folder where I ran it and tried typing
cd De
Followed by pressing the up key it would autocomplete to cd Desktop
Now I'm on a different computer and pressing the up key simply goes through the history of commands I've ran regardless of the folder I'm in or what I've typed, how can I make it so it autocompletes paritially based on my history instead?