0

I like to interact with the history of my bash commands. For instance, !?python would run the last command that contains python. Since the outcome is quite unpredictable, I often expand it before actually running the command. One can add bind Space:magic-space to the .bashrc, so that hitting the space key expands it. Similarly, one can add the following to the Emacs config.

(define-key shell-mode-map (kbd "SPC") 'comint-magic-space)

My question is if is there a way to get this magic-space kind of functionality in Eshell.

I know that comint-mode doesn't work with Eshell, hence the question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.