Mac OS - bashrc / homebrew - random notes

Posted on Sun 26 June 2016 in OSX • 1 min read

bash-completion

if [ -f $(brew --prefix)/etc/bash_completion ]; then
    source $(brew --prefix)/etc/bash_completion
fi

generic colouriser

example - colour

if [ -f $(brew --prefix)/etc/grc.bashrc ]; then
    source $(brew --prefix)/etc/grc.bashrc
fi

spotlight for cmd

spotlight () { mdfind "kMDItemDisplayName == '$@'wc"; }