Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #~/.bashrc
  2. do-magic() {
  3. # do some magic and return the input to current prompt line
  4. # for example "hello"
  5. }
  6. bind -x '"C-e":do-magic'
  7.  
  8. $ echo <ctrl+e>
  9. # become
  10. $ echo hello
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement