From 3cee46358e3417d7891c0ecfcc86af83ece70a11 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 30 Jan 2022 11:38:31 +0100 Subject: [PATCH] sh: Add serve alias to create a quick file server Quickly put up a file server in the current directory by typing `serve` and the rest is figured out automatically. Makes use of `sfz`, `gossa`, `rossa` in that order to set up the file server. --- sh/.config/sh/alias.d/sfz.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sh/.config/sh/alias.d/sfz.sh diff --git a/sh/.config/sh/alias.d/sfz.sh b/sh/.config/sh/alias.d/sfz.sh new file mode 100644 index 0000000..6d0daf8 --- /dev/null +++ b/sh/.config/sh/alias.d/sfz.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env sh +## Quickly bring up a file server for +# the current directory. + +if exist sfz; then + alias serve="sfz" +elif exist gossa; then + alias serve="gossa" +elif exist rossa; then + alias serve="rossa" +fi