Skip to content

Instantly share code, notes, and snippets.

View parkercoates's full-sized avatar

Parker Coates parkercoates

  • Fredericton, NB, Canada
View GitHub Profile
@parkercoates
parkercoates / functions.sh
Last active November 27, 2021 08:44 — forked from junegunn/functions.sh
Bash key bindings for git with fzf
# GIT heart FZF
# -------------
is_in_git_repo() {
git rev-parse HEAD > /dev/null 2>&1
}
gf() {
is_in_git_repo || return
git -c color.status=always status --short |
#!/bin/bash
set -e
PROGNAME=$(basename $0)
die() {
echo "$PROGNAME: $*" >&2
exit 1
}