# Add to your ~/.bashrc or ~/.bash_aliases the follow command: bind '"C-f": "C-a YOUR_COMMAND C-j"' # Example: bind '"C-f": "C-a echo $(date) C-j"' # When you press `CTRL`+`F` will run YOUR_COMMAND.