终端mac-更改颜色指南-文件.bash_profile-未找到bash,权限被拒绝

问题描述 投票:0回答:1

我尝试按照本指南在终端中更改颜色:http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/

我创建了bash_profile文件,保存并退出终端。现在,当我打开终端时,我得到以下信息:

Last login: Mon Oct 17 01:36:24 on ttys000

-bash:  : command not found

-bash:  : command not found

-bash:    git: command not found

-bash: gt: command not found

-bash: /dev/null: Permission denied

->> $最后一行在stackoverflow上更改。我不理解为什么。请看下面的照片。

我删除了bash_profile,但仍然得到相同的结果。

enter image description here

bash macos terminal permission-denied
1个回答
0
投票

由于我已经在AskDifferent上发布了相同的帖子,所以我没有使用标记要求按照评论中的建议移动帖子。

问题的答案在AskDifferent上:https://apple.stackexchange.com/questions/257603/terminal-change-of-colours-guide-file-bash-profile-bash-not-found-permissi

语法错误的问题是由我在其中复制/粘贴的源中的HTML标记引起的。

© www.soinside.com 2019 - 2024. All rights reserved.