edit script

This commit is contained in:
caandt 2024-11-12 02:25:31 -06:00
parent 2ba3ff1f5b
commit 701f1f4bf9

View file

@ -34,6 +34,13 @@ if ! [ -z "$FIRST" ]; then
$EDITOR "$1" $EDITOR "$1"
exit exit
fi fi
SEARCH="$(fd "$CONFIG" "$NIX" -p1)"
if [ -n "$SEARCH" ]; then
rm "$FIRST"
ln -s "$SEARCH" "$FIRST"
$EDITOR "$1"
exit
fi
echo "not symlinkable" echo "not symlinkable"
exit 1 exit 1
fi fi