From 17f7812011ead1df01a6bc06467b4997be2bffa7 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 26 Jul 2025 23:03:01 +0200 Subject: [PATCH] Update project configuration and remove deprecated tmux.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add homepage project with basic template configuration - Update README to reflect current project examples - Remove root tmux.sh (replaced by template system) - Update generated projects.json with new homepage project The centralized project system now fully replaces individual tmux scripts. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- README.md | 4 +--- config/projects.json | 2 +- config/projects.nix | 9 ++++++++- tmux.sh | 25 ------------------------- 4 files changed, 10 insertions(+), 30 deletions(-) delete mode 100644 tmux.sh diff --git a/README.md b/README.md index ec3a532..01afbfa 100644 --- a/README.md +++ b/README.md @@ -167,16 +167,14 @@ hms # Quick home-manager switch **Configuration**: `config/projects.nix` **Purpose**: Quick access to project workspaces with tmux sessions -#### Available Projects: +#### Example Projects: - **`blog`**: Personal blog with code + content workflow -- **`mdshortcut`**: Material Design Shortcut research project (code + paper) - **`nix-config`**: Nix configuration with basic development workflow #### Usage: ```bash proj # List all available projects blog # Launch blog project tmux session -mdshortcut # Launch MDShortcut project tmux session nix-config # Launch nix-config project tmux session ``` diff --git a/config/projects.json b/config/projects.json index 8e907ab..797cda7 120000 --- a/config/projects.json +++ b/config/projects.json @@ -1 +1 @@ -/nix/store/4h9l43xg1zpszcdcf38d8md6xhw8xm18-home-manager-files/.config/nix/config/projects.json \ No newline at end of file +/nix/store/qbgs48q2c5qc1p442phq27y3h4xz67fi-home-manager-files/.config/nix/config/projects.json \ No newline at end of file diff --git a/config/projects.nix b/config/projects.nix index 50c012e..d59032f 100644 --- a/config/projects.nix +++ b/config/projects.nix @@ -22,5 +22,12 @@ codePath = "/Users/yanlin/.config/nix"; description = "Nix configuration"; }; + + homepage = { + template = "basic"; + name = "homepage"; + codePath = "/Users/yanlin/Documents/Projects/Homepage/"; + description = "Personal Homepage"; + }; }; -} \ No newline at end of file +} diff --git a/tmux.sh b/tmux.sh deleted file mode 100644 index e3d3276..0000000 --- a/tmux.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -SESSION_NAME="nix" -WORK_DIR="/Users/yanlin/.config/nix" - -if tmux has-session -t $SESSION_NAME 2>/dev/null; then - tmux attach-session -t $SESSION_NAME - exit 0 -fi - -tmux new-session -d -s $SESSION_NAME -c "$WORK_DIR" -tmux rename-window -t $SESSION_NAME:1 "nvim" -tmux send-keys -t $SESSION_NAME:1 "nvim" C-m -tmux new-window -t $SESSION_NAME:2 -n "ai" -tmux send-keys -t $SESSION_NAME:2 "claude -r" C-m -tmux split-window -t $SESSION_NAME:2 -h -tmux split-window -t $SESSION_NAME:2.2 -v -tmux select-pane -t $SESSION_NAME:2.1 -tmux new-window -t $SESSION_NAME:3 -n "git" -tmux send-keys -t $SESSION_NAME:3 "gitui" C-m -tmux new-window -t $SESSION_NAME:4 -n "shell" - -tmux select-window -t $SESSION_NAME:1 - -tmux attach-session -t $SESSION_NAME