This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# delete remote | |
git branch -r --merged | grep -v '\*\|master\|develop' | sed 's/origin\///' | xargs -n 1 git push --delete origin | |
# delete local | |
git branch --merged | grep -v '\*\|master\|develop' | xargs -n 1 git branch -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
s = status -u | |
l = log --oneline | |
a = add --all | |
cm = commit -m | |
d = diff | |
amend = commit --amend --no-edit | |
unstage = reset HEAD | |
wip = !git add --all && git commit -q -m 'wip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# 0 8,13,18 * * * ./github-status.sh | |
GITHUB_STATUS_RESPONSE=$(curl -s https://status.github.com/api/last-message.json) | |
GITHUB_STATUS=$(echo $GITHUB_STATUS_RESPONSE | jq -r '.status') | |
GITHUB_BODY=$(echo $GITHUB_STATUS_RESPONSE | jq -r '.body') | |
INCOMING_WEBHOOK='https://hooks.slack.com/services/#######' | |
case "$GITHUB_STATUS" in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load Custom Config File per Directory | |
function _load_custom_zsh_on_dir () { | |
if [ -r $PWD/.zsh_config ]; then | |
source $PWD/.zsh_config | |
return 0 | |
else | |
return 1 | |
fi | |
} |