Skip to content

Feat: curl one-line installer + tmux auto-start on login#17

Merged
long-910 merged 4 commits intomainfrom
feature/add-changelog
Mar 1, 2026
Merged

Feat: curl one-line installer + tmux auto-start on login#17
long-910 merged 4 commits intomainfrom
feature/add-changelog

Conversation

@long-910
Copy link
Copy Markdown
Owner

@long-910 long-910 commented Mar 1, 2026

Summary

  • install.sh — New lightweight installer script that clones the repo to ~/.dotfiles then exec's bootstrap.sh. Enables one-line install via curl:

    curl -fsSL https://raw.githubusercontent.com/long-910/dotfiles/main/install.sh | bash

    Restores /dev/tty when piped from curl so the interactive menu works correctly. Supports forwarding flags (--all, --non-interactive, etc.) via bash -s -- <flags>.

  • dotfiles/.zshrc.d/tmux.zsh — Auto-starts tmux on every new terminal login (attaches to session main or creates it). Uses exec tmux so exiting tmux also exits the shell/terminal. Guarded against running inside an existing tmux session or in VSCode.

  • modules/core.sh — Deploys tmux.zsh as part of _deploy_core_configs().

  • READMEs (en/ja/zh) — Added curl one-liner section to Quick Start and tmux auto-start documentation under Tools.

Test plan

  • curl -fsSL https://raw.githubusercontent.com/long-910/dotfiles/main/install.sh | bash clones repo and shows interactive menu
  • curl ... | bash -s -- --all installs everything non-interactively
  • curl ... | bash -s -- --non-interactive uses defaults
  • After bootstrap.sh installs core, opening a new terminal auto-starts tmux session main
  • Exiting tmux closes the terminal/shell
  • Opening another terminal attaches to the existing main session
  • No tmux auto-start inside VSCode terminal ($TERM_PROGRAM=vscode)
  • ShellCheck CI passes for install.sh and dotfiles/.zshrc.d/tmux.zsh

🤖 Generated with Claude Code

long-910 and others added 4 commits March 1, 2026 14:57
Follows Keep a Changelog format. Documents all notable changes from
the initial commit through the recent CI fixes, organized by version
milestones.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add install.sh: clones repo to ~/.dotfiles and exec's bootstrap.sh,
  enabling `curl -fsSL URL/install.sh | bash` one-line install.
  Restores /dev/tty for interactive menu when piped from curl.
- Add dotfiles/.zshrc.d/tmux.zsh: auto-attaches to (or creates) a
  tmux session named "main" on login; exiting tmux exits the shell.
  Guarded by $TMUX and $TERM_PROGRAM checks.
- Wire tmux.zsh deployment into modules/core.sh _deploy_core_configs().
- Update README.md, README.ja.md, README.zh.md with curl one-liner
  and tmux auto-start documentation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Previously used `new-session -A -s main` which would create a new "main"
session even when other sessions already existed. Now checks for any
existing session first and attaches to the most recent one; only creates
a new session if none exist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@long-910 long-910 merged commit a2f4f5c into main Mar 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant