Skip to content

Instantly share code, notes, and snippets.

@nicoandmee
Created February 12, 2021 12:55
Show Gist options
  • Save nicoandmee/4689f769b312c91931b8221e8caed7ce to your computer and use it in GitHub Desktop.
Save nicoandmee/4689f769b312c91931b8221e8caed7ce to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
REPO="$1"
[ -z "$REPO" ] && exit 1
DIR=$(mktemp -d)
git clone --depth 1 "$REPO" "$DIR"
"$EDITOR" "$DIR"
rm -rf "$DIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment