arch/private_dot_local/bin/executable_localhost
lew 289efb7172 Add .local/bin/fishify_envs
Add .local/bin/hyprtoggle
Add .local/bin/localhost
Add .local/bin/tmux-sessionizer
2025-10-30 22:31:59 +00:00

13 lines
263 B
Bash

#!/bin/bash
IP=$(hostname -i | awk '{print $1}')
PORT=8000
YELLOW=$(tput setaf 3)
BLUE=$(tput setaf 4)
BOLD=$(tput bold)
RESET=$(tput sgr0)
echo "Serving ${YELLOW}${BOLD}$(pwd)${RESET} at ${BLUE}${BOLD}http://$IP:$PORT${RESET}"
python3 -m http.server "$PORT"