Small CLI helpers I keep around.
curl -fsSL https://raw.githubusercontent.com/srkntrn/scripts/main/install.sh | bashThis drops every script into ~/.local/bin. To install elsewhere:
curl -fsSL https://raw.githubusercontent.com/srkntrn/scripts/main/install.sh | INSTALL_DIR=/usr/local/bin bashIf ~/.local/bin isn't on your PATH, the installer will tell you how to add it.
tm attach to an existing session, or create one (interactive)
tm <name> attach to <name>, creating it if missing
tm -l, --list list sessions
tm -k <name> kill session <name>
tm -K, --kill-all kill the tmux server
tm -h, --help show help
The interactive picker uses fzf when available, otherwise falls back to a numbered menu. When run from inside tmux, tm uses switch-client instead of nesting an attach.
myipHits ifconfig.me with a 5s timeout and prints the result. Exits non-zero on failure, so it's safe to use in scripts.
rm ~/.local/bin/{tm,myip}