linux - bash 提示不显示行首

标签 linux bash

我的 shell 提示将长行的开头替换为 <
如何让长线在多条线上可见?

user@machine:~$
<s line is a very long one and the beggining is not visible...

最佳答案

检查你的inputrc

horizontal-scroll-mode (Off)

When set to On, makes readline use a single line for display, scrolling the input horizontally on a single screen line when it becomes longer than the screen width rather than wrapping to a new line.

该文件的位置由 INPUTRC 变量控制:

INPUTRC

The filename for the readline startup file, overriding the default of ~/.inputrc (see READLINE below).

(均引自 man bash )

关于linux - bash 提示不显示行首,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8240232/

相关文章:

linux - Linux 终端中目录之间的快速智能导航

linux - Linux 上保存应用程序配置的好地方在哪里

linux - Bash - 通过运行第二个命令更新终端标题

linux - 如何使用 UNIX bash 脚本变量从条件语句中的 date 命令分配值

windows - 是否可以在 Linux 机器上编译 Windows 二进制文件?

Windows 和 Linux 中的 PHP 日期函数

bash - 无法运行 tar 命令 - 无效选项 -- '▒'

linux - 如何计算linux机器中的内存利用率?

bash - 如何在单行中输出用引号括起来的文件名?

php - 在 centOs 上使用 PHP 5.6 安装 OCI8 (vagrant)