|
发表于 2009-3-25 17:24:17
|
显示全部楼层
你的文件写的基本上都是错的,建议你看一下bash的资料。
简单说一下 export 是 bash里面的,其作用是把一个变量输出到shell环境变量中,就是通常说的定义变量。
~/.bash_profile 是login shell 的环境变量。 ~/.bashrc 是 no login shell 的 环境变量定义的地方。
你需要翻一下论坛。有个精华帖讲的很清楚。
我下面写个给你用
~/.bash_profile
-----------------------------------------------
#!/bin/sh
# define the language
export LANG=zh_CN.UTF-8
# if you want to use the english menu
# export LANG=en_US
# export LC_CTYPE=zh_CN.UTF-8
# fix the chinese file name
export G_BROKEN_FILENAMES=1
=================================
~/.bashrc
-----------------------------------
#!/bin/sh
if [ -f ~/.bash_profile ]; then
source ~/.bash_profile
fi
==================================
这样每次只要修改 .bash_profile就好了。 |
|