Commits

Randy Stauner  committed 7ffb9d3

Download standalone bin/ scripts

  • Participants
  • Parent commits a6c0463

Comments (0)

Files changed (1)

File scripts/contrib.sh

 #!/bin/bash
 
+bin="$HOME/bin/contrib"
 completion="$HOME/.bashrc.d/completion.d/contrib"
-mkdir -p "$completion"
+mkdir -p "$bin" "$completion"
 
 function dl () {
   dest="$1" url="$2"
   test -e "$dest" || curl -sL "$url" > "$dest"
 }
 
+function dl_bin () {
+  dest="$bin/$1"
+  dl "$dest" "$2"
+  chmod 0755 "$dest"
+}
+
 function dl_completion () {
   dl "$completion/$1.bashrc" "$2"
 }
 
 dl_completion django https://github.com/django/django/raw/master/extras/django_bash_completion
+
+dl_bin  es      http://download.elasticsearch.org/es2unix/es
+dl_bin  hub     http://defunkt.io/hub/standalone
+dl_bin  viack   https://github.com/tsibley/viack/raw/master/viack