This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
misc-thomas/bin/lastcommit

17 lines
190 B
Bash
Executable File

#!/bin/sh
TMPFILE=$(tempfile -p clip. -s -gitlastcommit)
(echo "<pre>"
git lastcommit
echo ""
echo "</pre>"
echo "") > $TMPFILE
cat $TMPFILE | xclip
echo ""
cat $TMPFILE
rm -f $TMPFILE