Uh oh!
There was an error while loading. Please reload this page.
feat(project-manager): manage and persist PROJECT_DIR dynamically via config module (#9) - #22
Draft
Mohammadhoseinajorloo wants to merge 8 commits into
Draft
Conversation
after chenging name 'tmux project manager' to 'project manager' should chenging alias until work command in zsh Ref: #14
This file collection of tmux managment command. Ref: #14
Management and handel restor session tmux in start tmux server. Ref: #14
Handel UI/UX for working with project manager. Ref: #14
- Delete previw part from ui file in lib folde - Add `tmux-session-preview` script for rendering preview in fzf - Update `project-manger` script for read preview script Ref: #7
- Add `lib/project-manager/config.sh` module to manage .env loading and update - Prompt user for `PROJECT_DIR` on first run if not defined - Support tilde expansion and trim whitespace for the user input - Ignore `*.env` files in git Refs: #9
Mohammadhoseinajorloo
marked this pull request as draft
September 1, 2026 14:24
Mohammadhoseinajorloo
marked this pull request as ready for review
September 1, 2026 14:24
Mohammadhoseinajorloo
marked this pull request as draft
September 1, 2026 14:25
Closed
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 freeto 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.
Summery of Chenges
This PR introduces dynamic configuration management for
PROJECT_DIR.Instead of relying on hardcoded fallback path, the script now checks for the enviroment variable, prompts the user if missing, and persists it into a local.envfile for future runs.What's chenged
lib/project_manger/config.sh):.envloading and updating logic(load_env,save_env_var,ensure_project_dir).~->$HOME) and trimmed accidental whitespace.printf '%q'scripts/project-manager):ensure_project_dir.config.shmodule..gitignore):*.envfiles to prevent committing sensitive/machine-specific paths.How to Test
.envfile inlib/project_manger/:3.Verify that:
PROJECT_DIRis missing~/Projectsor/home/user/pathworks seamlessly..envfile is generated withPROJECT_DIR="...".Related Issues
Refs #9