Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 642 Bytes
#!/bin/bash
# some shell features
if ! egrep -q 'HISTCONTROL' ~/.bash_profile; then
echo "turning on HISTCONTROL=erasedups"
echo "export HISTCONTROL=erasedups" >> ~/.bash_profile
fi
if ! egrep -q 'HISTSIZE' ~/.bash_profile; then
echo "setting bash history to 10k entries"
echo "export HISTSIZE=10000" >> ~/.bash_profile
fi
if ! egrep -q 'histappend' ~/.bash_profile; then
echo "turning on bash histappend"
echo "shopt -s histappend" >> ~/.bash_profile
fi
mkdir -p ~/bin
echo 'export PATH="/Users/$USER/bin:$PATH"' >> ~/.bash_profile
sudo brew install gnu-sed
echo 'alias sed=/usr/local/bin/gsed' >> ~/.bash_profile