dotfiles/.local/bin/edsc
2025-05-29 23:14:29 +02:00

13 lines
185 B
Bash

#!/bin/sh
if [ -z "$1" ]; then
SCRIPT=$(find . -type f | fzfse)
else
SCRIPT="$1"
fi
if [ -z "$SCRIPT" ]; then
echo 'Usage: edsc [file]'
exit 1
fi
emacsclient -c -nw "$SCRIPT"