dotfiles/scripts/fhackeditor
Marko Korhonen ce475402bc Nvim: add json schema store
Allows automatically fetching schemas in json files without specifying
schema
2025-03-20 23:34:54 -05:00

9 lines
227 B
Bash
Executable file

#!/bin/sh
# Script to launch a graphical editor if in graphical mode,
# terminal editor otherwise
if [ -n "$DISPLAY" ] || [ -n "$WAYLAND_DISPLAY" ]; then
echo "Running in graphical mode"
else
echo "Running in TTY mode"
fi