Bash - Basic .bashrc for Mac
Updated at 2015-10-03 11:29
# Non-login shell
# ~/.bashrc
function flushdns() {
dscacheutil -flushcache
}
function showfiles() {
echo "Showing hidden files in Finder..."
defaults write com.apple.finder AppleShowAllFiles YES \
&& killall Finder
}
function hidefiles() {
echo "Hiding hidden files in Finder..."
defaults write com.apple.finder AppleShowAllFiles NO \
&& killall Finder
}
echo .bashrc loaded
# Login shell
# ~/.bash_profile
# Execute non-login shell commands.
source ./.bashrc
echo .bash_profile loaded