在小于全屏的终端窗口中,如果我输入一个长命令,它会开始覆盖我所在的当前行。如果我输入一个额外的行,它最终会移动到下一行。有谁知道如何解决这一问题?
这是视觉上发生的事情:
编辑:这些是我的提示设置:
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) 我想将我的音乐分成多个库以更好地组织它,但我能找到的任何东西似乎都已经过时了。它仍然需要hacky解决方案来做到这一点还是现在更容易?