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.
This commit is contained in:
parent
a27d86942b
commit
3cee46358e
1 changed files with 11 additions and 0 deletions
11
sh/.config/sh/alias.d/sfz.sh
Normal file
11
sh/.config/sh/alias.d/sfz.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue