判断当前bash是否为login shell
echo "$0"如果显示`-bash'则说明是login shell
如果显示`bash'则说明不是login shell
how to determine if the current shell is a login shell?
Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.