Custom fish function and bash yazi with fisher

This commit is contained in:
2025-12-24 15:58:15 +01:00
parent 428b3e717b
commit e7229185f0
8 changed files with 306 additions and 20 deletions

View File

@@ -0,0 +1,15 @@
function serve --description "Start a simple HTTP server"
set port 8000
if test (count $argv) -gt 0
set port $argv[1]
end
if command -v python3 >/dev/null
python3 -m http.server $port
else if command -v python >/dev/null
python -m SimpleHTTPServer $port
else
echo "Python not found"
return 1
end
end