This file contains hidden or 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
# GitHub provides a simple json api for it's status updates (status.github.com). jq is a very nice command line json parser http://stedolan.github.io/jq/. | |
# Combine the two, and you have a nifty GitHub status check, right from the command line! | |
# Add the following alias to your .bashrc or .zshrc; rename as you wish | |
ghs='curl https://status.github.com/api/last-message.json | jq .' |
This file contains hidden or 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/sh | |
ORIG_MSG_FILE="$1" | |
TEMP=`mktemp /tmp/git-XXXXX` | |
TICKET=`git rev-parse --abbrev-ref HEAD` | |
(echo $TICKET": "; cat "$ORIG_MSG_FILE") > "$TEMP" | |
cat "$TEMP" > "$ORIG_MSG_FILE" |
This file contains hidden or 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
# Simple shortcut to edit your gitignore | |
# from anywhere inside your git repository | |
# Note that this will only work for gitignores | |
# in the top level directory | |
# To use, copy and paste the code | |
# into your bashrc or zshrc | |
alias egi="vim $(git rev-parse --show-toplevel)/.gitignore" |
NewerOlder