Bash .profile未加载 [英] Bash .profile not loading

查看:167
本文介绍了Bash .profile未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定发生了什么,但我的〜/.profile不再加载.

I'm not sure what's happened but my ~/.profile is no longer loading.

有人可以看到以下内容有问题吗?

Can anyone see something wrong with the following?

export PS1="\u@local [\w]# "
export EDITOR="subl -w"
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

alias vst="ssh -i ~/.ssh/vst root@vst"

我知道使用PS1的事实,就像我尝试做的那样,应该是Peter@local [~/path/to/file]#,但事实并非如此.

I know for a fact using that PS1 like I am attempting to do it should be doing Peter@local [~/path/to/file]# but it's not.

有什么想法吗?

推荐答案

~/.bash_profile~/.bash_login是否存在?如果是这样,将使用它代替~/.profile.

Does ~/.bash_profile or ~/.bash_login exist? If so, that'll be used instead of ~/.profile.

这篇关于Bash .profile未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆