#!/bin/sh # i1.is — a short path from an idea to an installed tool. set -eu show_help() { cat <<'HELP' i1.is / quick installs 1 smart-tree Explore files and give agents useful context 2 fzf Find things in your terminal 3 glow Read Markdown comfortably 4 rust Install the Rust toolchain 5 dog Look up DNS records 6 zsh Set up Zsh 0 exit Install directly: curl -fsSL https://i1.is/tools/smart-tree | sh curl -fsSL https://i1.is | sh -s -- smart-tree --compile curl -fsSL https://i1.is | sh -s -- fzf Repository archives and recall: https://8s.is HELP } I1_TOOL=${1:-} if [ "$#" -gt 0 ]; then shift; fi if [ -z "$I1_TOOL" ]; then show_help if [ -t 1 ] && ( : /dev/null; then printf '\n Choose a tool [0-6]: ' IFS= read -r I1_TOOL &2; exit 1 ;; esac I1_TMP=$(mktemp -d) trap 'rm -rf "$I1_TMP"' EXIT HUP INT TERM curl --proto '=https' --proto-redir '=https' -fsSL \ "https://i1.is/tools/$I1_TOOL" -o "$I1_TMP/install.sh" sh "$I1_TMP/install.sh" "$@"