小编the*_*aer的帖子

如何防止终端线覆盖自身?

在小于全屏的终端窗口中,如果我输入一个长命令,它会开始覆盖我所在的当前行。如果我输入一个额外的行,它最终会移动到下一行。有谁知道如何解决这一问题?

这是视觉上发生的事情:

终端截图

编辑:这些是我的提示设置:

PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\033[1m`__git_ps1`\033[0m\$ '
TERM=xterm
Run Code Online (Sandbox Code Playgroud)

.bashrc

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\033[1m`__git_ps1`\033[0m\$ '
fi

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac
Run Code Online (Sandbox Code Playgroud)

command-line

16
推荐指数
2
解决办法
2万
查看次数

如何在 Rhythmbox 中设置多个库?

我想将我的音乐分成多个库以更好地组织它,但我能找到的任何东西似乎都已经过时了。它仍然需要hacky解决方案来做到这一点还是现在更容易?

rhythmbox 12.04

4
推荐指数
1
解决办法
1982
查看次数

标签 统计

12.04 ×1

command-line ×1

rhythmbox ×1