Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get last typed command on terminal #18

Open
FabioRosado opened this issue Apr 1, 2019 · 2 comments
Open

Get last typed command on terminal #18

FabioRosado opened this issue Apr 1, 2019 · 2 comments
Assignees
Labels
dailyhack This issue belongs to dailyhack.xyz terminal

Comments

@FabioRosado
Copy link

You can run the last typed command in the terminal by using !!.

Let's say that your history looks like this:

cd
ls
cd Documents
ls

if you type !! the last command (ls) will be auto-filled in the terminal for you.

But you can also get more specific, by using !<term> so you could use !cd to get the last cd command which was cd Documents

@mddanishyusuf mddanishyusuf added dailyhack This issue belongs to dailyhack.xyz coolhack This trick is cool labels Apr 1, 2019
@cprkrn
Copy link

cprkrn commented Apr 11, 2019

Oooo. Love this one. Thanks

@FabioRosado
Copy link
Author

Thank you glad you liked this trick 😄

@mddanishyusuf mddanishyusuf added terminal and removed coolhack This trick is cool labels Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dailyhack This issue belongs to dailyhack.xyz terminal
Projects
None yet
Development

No branches or pull requests

3 participants