我想制作一个在登录时自动运行的脚本,所以我将它放入文件中~/bash.profile,但它没有运行。当我把它放在 bashrc 中时,它在打开终端时运行。
~/bash.profile
我在脚本中所做的是访问图片文件夹中的文件。我刚刚添加./script.sh了~/.bash_profile. 如何让它在登录时运行?
./script.sh
~/.bash_profile
我在 Ubuntu 11.10 上使用 Unity。
bash login ubuntu profile unity
bash ×1
login ×1
profile ×1
ubuntu ×1
unity ×1