Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (13 sloc) 318 Bytes
#!/bin/sh
CWD=`pwd`
if [ "${CWD##*/}" != ".profile.d" ]; then
echo "The name of this directory should be '.profile.d'"
exit 1
fi
if [ -f ~/.bash_profile ]; then
echo "You already have a .bash_profile. Backup that file and then run this script again"
exit 1
fi
cd ~
set -x
ln -s $CWD/.bash_profile .