Feat: curl one-line installer + tmux auto-start on login#17
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
install.sh— New lightweight installer script that clones the repo to~/.dotfilesthen exec'sbootstrap.sh. Enables one-line install via curl:curl -fsSL https://raw.githubusercontent.com/long-910/dotfiles/main/install.sh | bashRestores
/dev/ttywhen piped from curl so the interactive menu works correctly. Supports forwarding flags (--all,--non-interactive, etc.) viabash -s -- <flags>.dotfiles/.zshrc.d/tmux.zsh— Auto-starts tmux on every new terminal login (attaches to sessionmainor creates it). Usesexec tmuxso exiting tmux also exits the shell/terminal. Guarded against running inside an existing tmux session or in VSCode.modules/core.sh— Deploystmux.zshas 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 | bashclones repo and shows interactive menucurl ... | bash -s -- --allinstalls everything non-interactivelycurl ... | bash -s -- --non-interactiveuses defaultsbootstrap.shinstalls core, opening a new terminal auto-starts tmux sessionmainmainsession$TERM_PROGRAM=vscode)install.shanddotfiles/.zshrc.d/tmux.zsh🤖 Generated with Claude Code