Skip to content

Instantly share code, notes, and snippets.

@aparkerlue
aparkerlue / lsg
Created January 7, 2022 18:51
Shell script to list Git repositories
#!/bin/sh
# -*- mode: shell-script; sh-shell: sh; coding: utf-8; -*-
usage() {
echo "Usage: $(basename $0) [-h/--help]"
}
if [ $# -eq 1 ] && ( [ "$1" = "-h" ] || [ "$1" = "--help" ] ); then
usage
echo "List Git repositories."
exit
@aparkerlue
aparkerlue / git-tree-files.bash
Created December 17, 2021 16:57
Bash function to list Git index and working tree files in a tree-like format
# -*- mode: shell-script; sh-shell: bash; coding: utf-8; -*-
git-tree-files() {
git ls-files "$@" | tree -a --fromfile .
}
@aparkerlue
aparkerlue / keybase.md
Last active November 12, 2018 14:13
Keybase proof

Keybase proof

I hereby claim:

  • I am aparkerlue on github.
  • I am apl (https://keybase.io/apl) on keybase.
  • I have a public key ASDotziLjsRHPcY10LcVe66JBjHDqMbqGeOZkoutTfTQ-Ao

To claim this, I am signing this object: