Files
sxmo-utils/scripts/core/sxmo_edit_screen.sh
2022-07-01 11:15:51 +02:00

9 lines
234 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2022 Sxmo Contributors
tmpfile=$(mktemp /tmp/st-edit.XXXXXX)
trap 'rm "$tmpfile"' 0 1 15
cat > "$tmpfile"
# shellcheck disable=SC2086
sxmo_terminal.sh $EDITOR "$tmpfile"