source ~/.bashrc
export LANG=en_US.UTF-8

#获取运行的程序名
PRONAME=`basename $0`
#获取文件运行的当前目录
CURPATH=$(cd "$(dirname "$0")"; pwd)

cd $CURPATH

 

相关文章: