最後更新: 2022-12-15
介紹
Readline is customized by putting commands in an initialization file (the inputrc file).
The name of this file is taken from the value of the INPUTRC environment variable.
優先次序
- ~/.inputrc
- /etc/inputrc
Help
man 3 readline
Copy&Paste Python Code 到 Shell Enter 後 Error
Error
SyntaxError: multiple statements found while compiling a single statement
[Fix]
echo "set enable-bracketed-paste off" >> ~/.inputrc
Notes
Readline configures the terminal to insert each paste into the editing buffer as a single string of characters,
instead of treating each character as if it had been read from the keyboard.
It prevents Readline from executing any editing commands bound to key sequences appearing in the pasted text.
The default is ‘On’.