由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - .bash_profile not run when opening a terminal from desktop
相关主题
ubuntu无法上下箭头呼出历史命令找不到命令的路径
哪位大牛来普及一下 linux 下面的各种环境变量以及设置不用安装的trash bin?
问一个 remote terminal 的Shell 问题请教如何更改启动时的默认目录?
bash中比较无聊的功能why terminal is not like an editor?
新手问个shell的问题The command line is powerful, but the UI can be more efficient!
如何问个terminal的问题
Newbie question如何使terminal里面总是显示一行当前目录?
setting up bash每次打开terminal,都会随机显示一首中文诗
相关话题的讨论汇总
话题: bash话题: run话题: profile话题: terminal话题: desktop
进入Linux版参与讨论
1 (共1页)
r***e
发帖数: 2000
1
It seems .bash_profile was not run when opening a terminal
window from the desktop; but run if ssh to the computer.
Why? And how to make it run all the time? Thank you.
w**********u
发帖数: 913
2
login shell

【在 r***e 的大作中提到】
: It seems .bash_profile was not run when opening a terminal
: window from the desktop; but run if ssh to the computer.
: Why? And how to make it run all the time? Thank you.

b**g
发帖数: 335
3
http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.htm

【在 r***e 的大作中提到】
: It seems .bash_profile was not run when opening a terminal
: window from the desktop; but run if ssh to the computer.
: Why? And how to make it run all the time? Thank you.

r***e
发帖数: 2000
4

Thank you. Now that I know how it supposed to work,
I am still confused on what is the best way to do it,
and wonder is there a better way.:(
One comment said that .bashrc supposed to contain
only bash specific stuff, while the .profile takes
care of universal settings. If PATH is not bash
specific, then it should be placed in .profile,
and is not set in interactive shell.

【在 b**g 的大作中提到】
: http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.htm
1 (共1页)
进入Linux版参与讨论
相关主题
每次打开terminal,都会随机显示一首中文诗新手问个shell的问题
windows7真是好用啊如何
RH terminal (bash process) goes away by itselfNewbie question
请总结一下:如何实现自启动 autostart?setting up bash
ubuntu无法上下箭头呼出历史命令找不到命令的路径
哪位大牛来普及一下 linux 下面的各种环境变量以及设置不用安装的trash bin?
问一个 remote terminal 的Shell 问题请教如何更改启动时的默认目录?
bash中比较无聊的功能why terminal is not like an editor?
相关话题的讨论汇总
话题: bash话题: run话题: profile话题: terminal话题: desktop