Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #~/.bashrc
- do-magic() {
- # do some magic and return the input to current prompt line
- # for example "hello"
- }
- bind -x '"C-e":do-magic'
- $ echo <ctrl+e>
- # become
- $ echo hello
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement