最近,我在水平调整 gnome-terminal 窗口大小时注意到一个奇怪的问题。
包装 bash 行时存在一个错误:行被复制。我真的不知道这是否正常。
我创建了一个 GIF 来显示问题:
我阅读了其他类似的错误和修复。他们说要验证文件$PS1中的 var.bashrc并修复任何未用\[\]. 我将.bashrc文件重置为默认值,如下所示:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, …Run Code Online (Sandbox Code Playgroud)