I am facing an issue during the usage of up and down on gnome-terminal. Lets say my previous commands are
vi pos_of_rightmost_setbit.cpp
gcc -o harsha pos_of_rightmost_setbit.cpp
At this point when I press a up arrow,I see last previous command gcc -o harsha pos_of_rightmost_setbit.cpp
which is perfect.
But when I hit up arrow again,I have to see last but one previous command which is vi pos_of_rightmost_setbit.cpp
, Instead I am seeing gcc -o harvightmost_setbit.cpp
.
When I hit enter at this point of time,The command vi pos_of_rightmost_setbit.cpp is working fine,So I think there some problems with bashrc settings.
I am attaching screenshots for better understanding.