我试图在终端中自定义我的提示.为此,我尝试.bash_profile使用vim 进行编辑,但最终得到了一个.bash_profile.swp文件.在我在网上发现的一些帖子之后,我:recover在vim中使用了命令,它创建了一个新的.bash_profile,然后删除了.swp文件.但是,现在终端似乎没有用.当我打开它时,我收到以下消息:
.bash_profile
.bash_profile.swp
:recover
-bash:c:找不到命令 -bash:end:命令未找到 [流程完成]
-bash:c:找不到命令
-bash:end:命令未找到
[流程完成]
有人知道如何解决这个问题吗?
macos terminal iterm
iterm ×1
macos ×1
terminal ×1