I want the !!
command to execute the last command I ran. Currently, when I hit enter, it just prints the last command I ran on a new terminal line, and I have to hit enter again. It worked with a single 'enter' press on a previous work station of mine, so I know it's possible.
Asked
Active
Viewed 346 times
-1

samlandfried
- 801
- 9
- 11
-
1Why not just hit up+enter? – ceejayoz Nov 02 '17 at 16:13
-
1You can also use Ctrl+p then Enter, which I find easier to type anyway – Ben Nov 02 '17 at 16:17
-
@ceejayoz 'Cause the up key is inconvenient – samlandfried Nov 02 '17 at 16:35
-
@Ben Personally, I find ! to be easier to type than ctrl + p – samlandfried Nov 02 '17 at 16:36
-
1@samlandfried you be you :) – Ben Nov 02 '17 at 18:20
1 Answers
2
For bash
, the option histverify
is probably on. Try shopt -u histverify
, and see if you can begin to enjoy the immediate execution of previous commands again.

sjnarv
- 2,334
- 16
- 13