start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/sh | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop release hotfix) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD 2> /dev/null) | |
if [ $? -eq 0 ]; then | |
BRANCH_NAME="${BRANCH_NAME##*/}" |
#!/bin/bash | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop release hotfix) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_NAME="${BRANCH_NAME##*/}" | |
JIRA_ID=`echo $BRANCH_NAME | grep -oE '[A-Z]+-[0-9]+'` |