brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
| #!/bin/bash | |
| # Requires xdotool | |
| # cx and cy are the center coordinates around which the circle will be drawn | |
| # r is the radius of the circle | |
| # time is how long the circle will take to draw | |
| # steps is how many steps the circle will be drawn in | |
| r=400 | |
| cx=$(echo "2560 + 1920 / 2 + 0.2" | bc -l) | |
| cy="578.5" |
| function incrementInt(num) { | |
| switch(+num) { | |
| case 0: | |
| return [1, 0]; | |
| case 1: | |
| return [2, 0]; | |
| case 2: | |
| return [3, 0]; | |
| case 3: | |
| return [4, 0]; |
Example usage:
proj start aem ui pds
proj checkout develop aem ui pds
proj checkout -b feature/new-branch aem ui pds
feature/new-branch on the specified projects| #!/bin/bash | |
| pattern=:V: | |
| test=0 | |
| confirm=0 | |
| function print_help() { | |
| echo "" | |
| echo "Usage: git-tag-npm-version <arguments>" | |
| echo "" |
| #!/bin/bash | |
| ## Ensure that java 8 is being used | |
| export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)" | |
| export PATH=$JAVA_HOME/bin:$PATH | |
| function timeout() { | |
| perl -e 'alarm shift; exec @ARGV' "$@" | |
| } |
| #!/usr/local/bin/bash | |
| str="/$*/" | |
| str=$(echo "$str" | sed 's/ /\/ \&\& \//g') | |
| str="print if $str" | |
| res=$(git branch --all | perl -ne "$str") | |
| res=$(echo $res | tr ' ' '\n' | cut -d/ -f3-) | |
| matches=$(echo $res | tr ' ' '\n' | uniq -u | wc -l) | |
| if (( $matches == 1 )); then | |
| git checkout "$res" |
| #!/bin/bash | |
| POSITIONAL=() | |
| while [[ $# -gt 0 ]] | |
| do | |
| key="$1" | |
| case $key in | |
| -b|--begin|-ss) | |
| START="$2" |