Skip to content

Commit

Permalink
Add ruby support in lang bootstrap bash function
Browse files Browse the repository at this point in the history
  • Loading branch information
creichert committed Apr 15, 2019
1 parent 74d84f6 commit 7cdb374
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions bash/.bash_functions
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ function github_fetch_pr() {
git checkout $NEW_BRANCH
}

function make() {

pathpat="(/[^/]*)+:[0-9]+"
ccred=$(echo -e "\033[0;31m")
ccyellow=$(echo -e "\033[0;33m")
ccend=$(echo -e "\033[0m")
/usr/bin/make "$@" 2>&1 | sed -E -e "/[Ee]rror[: ]/ s%$pathpat%$ccred&$ccend%g" -e "/[Ww]arning[: ]/ s%$pathpat%$ccyellow&$ccend%g"
return ${PIPESTATUS[0]}
}

function rapid_keys() {
xset r rate 250 60
}
Expand Down Expand Up @@ -119,8 +109,17 @@ function bootstrap_lang() {
fi
;;

# Ruby
ruby)
export RVM_ROOT="$HOME/.rvm"
if [[ -d "$RVM_ROOT" ]]; then
export PATH="$HOME/.rvm/bin:$PATH"
else
echo "rvm not installed."
fi
;;
*)
echo $"Usage: $0 {node|rust|golang|haskell}"
echo $"Usage: $0 {node|rust|golang|haskell|ruby}"

esac
}
Expand Down

0 comments on commit 7cdb374

Please sign in to comment.