Skip to content

Instantly share code, notes, and snippets.

@atnan
Created May 19, 2010 04:14
Show Gist options
  • Save atnan/405944 to your computer and use it in GitHub Desktop.
Save atnan/405944 to your computer and use it in GitHub Desktop.
#/usr/bin/env bash
brewprefix="$( brew --prefix )"
rvmpath="$HOME/.rvm"
sources=(
"$brewprefix/etc/bash_completion"
"$brewprefix/Library/Contributions/brew_bash_completion.sh"
"$rvmpath/scripts/rvm"
"$rvmpath/scripts/completion"
)
for src in ${sources[@]}; do
[[ -r $src ]] && source $src
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment