Move old config to old-dots branch

This commit is contained in:
2023-12-25 13:21:57 +03:00
commit 3dab77f779
119 changed files with 9623 additions and 0 deletions

24
scripts/shrout Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
tmpfile=$(mktemp /tmp/cmd-output.XXXXXX)
trap 'rm "$tmpfile"' 0 1 15
echo "\$ $@" | tee $tmpfile
eval "$@" |& tee -a $tmpfile
read -p "Sharing output. [O]k, [e]dit, [d]iscard? " -n1 ans;
echo
case "$ans" in
o|O) ;;
e|E) $EDITOR $tmpfile
;;
d|D) exit 0
;;
*) exit 1
;;
esac
shrfile $tmpfile 2>/dev/null