macOS终端登录用户名是一系列字母和数字

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

每当您登录终端时,最左侧,您应该在YOUR_NAME @ BLABLA $上看到您的登录名

然而,当我在家时,它将是yuminsMBP:〜并且每当我在大学时,登录名是一系列字母,数字和特殊字符。我总能看到,每次打开终端时,第一行需要大约1秒才能显示出来,似乎终端尝试计算某些东西或者正在运行某个进程。

我不明白为什么,也不记得我做了什么。也许是因为我去年安装了anaconda?这太遥远了,直到今天我的朋友说我的登录看起来很奇怪,我开始考虑这个问题。

你知道我对我的mac做了什么吗?

My .bashrc looks like:

Add RVM to PATH for scripting. Make sure this is the last PATH variable change.

export PATH =“$ PATH:$ HOME / .rvm / bin”

My .bash_profile looks like:(I only provide things I think weird.)

等等...

source~ / .rvm / scripts / rvm [[-s“$ HOME / .rvm / scripts / rvm”]] && source“$ HOME / .rvm / scripts / rvm”

Load RVM into a shell session as a function

blablabla ...

MacPorts Installer addition on 2017-12-03_at_18:01:33: adding an appropriate PATH variable for use with MacPorts.

export PATH =“/ opt / local / bin:/ opt / local / sbin:$ PATH”

Finished adapting your PATH environment variable for use with MacPorts

blablabla ...

最好的,Yumin

macos login terminal
1个回答
0
投票

最可能的原因是您的bash_profile中有一些导致更改的内容。要检查这一点,请打开用户主目录中的.bash_profile文件。一种方法是打开终端并运行cat ~/.bash_profile,如果你的bash_profile来源,你可能还需要检查你的.bashrc文件。

如果没有进一步的信息,没有真正的方法可以说明您的具体问题。

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