我已经修改了我的 Ubuntu 17.10 系统,使其看起来像 macOS。现在我对我的终端的行为感到困惑。换行符显示不正确。这个视频展示了我的意思。
修改后的文件是~/.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, don't overwrite it
shopt -s histappend
# for …Run Code Online (Sandbox Code Playgroud)