DEV Community

Discussion on: Ctrl+R Autocomplete with Bash is a Life Saver

Collapse
 
markuman profile image
Markus Bergholz

If I want to use the last scp command, I simply use !sc for example.

And I use my lazy bash alias for grepping my history (h grep)

function search_in_bash_history () {
        grep "$1" ~/.bash_history
}
alias h="search_in_bash_history"
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ben profile image
Ben Halpern

Nice πŸ‘Œ