From 5b723ddfb04a74b75e1aa6520bc3e30d4b8a034b Mon Sep 17 00:00:00 2001 From: Marty Oehme <marty.oehme@gmail.com> Date: Sun, 5 Jan 2025 16:43:52 +0100 Subject: [PATCH] sh: Switch from sfz to miniserve in serve alias Serve alias (now also with a more appropriately named file) will now look for miniserve before any other static file serve program. I also replaced sfz with miniserve in my installed programs. That is because sfz has been unmaintained for a long time and miniserve completely fulfills all my needs while still being maintained and recommended. --- bootstrap/packages_stable.tsv | 2 +- sh/.config/sh/alias.d/{sfz.sh => serve.sh} | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) rename sh/.config/sh/alias.d/{sfz.sh => serve.sh} (73%) diff --git a/bootstrap/packages_stable.tsv b/bootstrap/packages_stable.tsv index c243efd..2461276 100644 --- a/bootstrap/packages_stable.tsv +++ b/bootstrap/packages_stable.tsv @@ -167,6 +167,7 @@ mermaid-cli Generation of diagram and flowchart from text in a similar manner as mimeo Open files by MIME-type or file name using regular expressions. A minidlna A DLNA/UPnP-AV Media server (aka ReadyDLNA) R minio-client Replacement for ls, cp, mkdir, diff and rsync commands for filesystems and object storage R +miniserve Tool to serve files via HTTP R mopidy-bandcamp Mopidy backend for Bandcamp A mopidy-iris A Mopidy Web client that utilizes the Spotify and EchoNest frameworks. (Formerly Spotmop) A mopidy-local Mopidy extension for local media playback A @@ -282,7 +283,6 @@ scc-bin Sloc, Cloc and Code: scc is a very fast accurate code counter with compl scrcpy Display and control your Android device R screen Full-screen window manager that multiplexes a physical terminal R sd Intuitive find & replace R -sfz A simple static file server A shellcheck-bin Shell script analysis tool (binary release, static) A shfmt Format shell programs R sioyek PDF viewer for research papers and technical books. A diff --git a/sh/.config/sh/alias.d/sfz.sh b/sh/.config/sh/alias.d/serve.sh similarity index 73% rename from sh/.config/sh/alias.d/sfz.sh rename to sh/.config/sh/alias.d/serve.sh index 6d0daf8..d58d216 100644 --- a/sh/.config/sh/alias.d/sfz.sh +++ b/sh/.config/sh/alias.d/serve.sh @@ -2,7 +2,9 @@ ## Quickly bring up a file server for # the current directory. -if exist sfz; then +if exist miniserve; then + alias serve="miniserve" +elif exist sfz; then alias serve="sfz" elif exist gossa; then alias serve="gossa"