开发者

How do I make selecting text and copy/paste work the same in bash as everywhere else?

开发者 https://www.devze.com 2023-02-02 22:16 出处:网络
i.e. I want to use shift+arrows to select, ctrl+c/v to copy/paste. I\'m also open to using another shell that mak开发者_如何学编程es this easierbash uses the readline library to handle input. By defau

i.e. I want to use shift+arrows to select, ctrl+c/v to copy/paste. I'm also open to using another shell that mak开发者_如何学编程es this easier


bash uses the readline library to handle input. By default it uses emacs-style notation for commands. See this cheatsheet to get a list of commands on how to manipulate the command line with emacs-style notation.

If, instead, you would like bash/readline to use vi-style notation, then run set -o vi in your ~/.bash_profile

I'm not sure where "everywhere else" is, but both emacs and vi are pervasive in the *nix world. If those two styles are not to your liking, you'll most liking have to look to another shell.

0

精彩评论

暂无评论...
验证码 换一张
取 消