小编Fer*_*ari的帖子

GNOME 终端 bash 换行问题

最近,我在水平调整 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)

gnome command-line bash bashrc

5
推荐指数
1
解决办法
775
查看次数

标签 统计

bash ×1

bashrc ×1

command-line ×1

gnome ×1