Add .local/bin/fishify-envs

Add .local/bin/fix-loopback
Add .local/bin/hyprtoggle
Add .local/bin/localhost
Add .local/bin/low-battery-warn
Add .local/bin/make-pwa
Add .local/bin/niri-cycle
Add .local/bin/push-chezmoi
Add .local/bin/tmux-sessionizer
Add .local/bin/hooks/generic
This commit is contained in:
Lewis Wynne 2026-01-07 15:08:51 +00:00
parent 9c6f940eb1
commit 9d16d6e6b0
10 changed files with 298 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
PORT=8000
IP=$(ip route get 1.1.1.1 2>/dev/null | awk '{print $7; exit}')
IP=${IP:-127.0.0.1}
if [[ -t 1 ]]; then
YELLOW=$(tput setaf 3)
BLUE=$(tput setaf 4)
BOLD=$(tput bold)
RESET=$(tput sgr0)
else
YELLOW= BLUE= BOLD= RESET=
fi
echo "Serving ${YELLOW}${BOLD}$(pwd)${RESET} at ${BLUE}${BOLD}http://${IP}:${PORT}${RESET}"
exec python3 -m http.server "$PORT"