|
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH HOME/bin
user=`whoami`
address=`w|awk -v auser="$user" '$1 == auser {print $3}'`
PS1='[\u@\h \w\#]\$'
export PATH
unset USERNAME
#echo "Your ADDRESS IS $address."
#if [ "$address" != "192.168.2.25" ]
#then
#echo "Sorry! Your Ipaddress Is $address.It's not ssh to me.\n Your will exit in 5 seconds"
#sleep 5
#exit
#fi
这是我的.bash_profile |
|