1.sh
:
#!/bin/sh
set -eux
rm -rf rubygems bundler
git clone https://github.com/rubygems/rubygems
git clone https://github.com/rubygems/bundler
#!/usr/bin/env zsh | |
git show-branch -a \ | |
| grep '\*' \ | |
| grep -v `git rev-parse --abbrev-ref HEAD` \ | |
| head -n1 \ | |
| sed 's/.*\[\(.*\)\].*/\1/' \ | |
| sed 's/[\^~].*//' | |
# How it works: |
#! /bin/sh | |
# Original https://gist.github.com/brutella/0bcd671a9e4f63edc12e | |
function print_example() { | |
echo "Example" | |
echo " icons ios ~/AppIcon.pdf ~/Icons/" | |
} | |
function print_usage() { |