I would like to bind my empty line in my bash to a specific command (for example pwd, ls, …), like so :
$<enter>
$/home/
I tried
// ~/.bashrc
alias ="pwd"
But obviously this was rejected :
-bash: alias: =pwd: not found
Any idea ?
aliasbashbashrc
I would like to bind my empty line in my bash to a specific command (for example pwd, ls, …), like so :
$<enter>
$/home/
I tried
// ~/.bashrc
alias ="pwd"
But obviously this was rejected :
-bash: alias: =pwd: not found
Any idea ?
Best Answer
An alternative: