Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Oct 7, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

shinenelson and others added 15 commits June 9, 2025 19:22
The SSH completion was removing the @ sign when completing user@host
combinations. For example, `ssh root@ser<TAB>` would complete to
`ssh rootserver` instead of `ssh root@server`.

**Root Cause:**
The @ character was in COMP_WORDBREAKS, causing bash to treat it as a
word boundary and remove it during completion.

**Solution:**
Remove @ from COMP_WORDBREAKS (in addition to : which was already removed).
This allows the completion to preserve the full user@host format.

**Testing:**
- Passes shellcheck with no warnings
- Passes shfmt formatting checks
- Completion now correctly preserves user@host format

Closes #2260

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
…ersion

Adds the ability to only show node version in the prompt when inside a
Node.js project (detected by presence of package.json).

**Problem:**
The node version was always displayed in the prompt regardless of the
current directory context. This wastes space when working on non-Node.js
projects (Python, Ansible, etc.).

**Solution:**
- New environment variable: `NODE_VERSION_CHECK_PROJECT` (default: false)
- When set to 'true', node version only shows in directories with package.json
- Searches current directory and parent directories up to $HOME
- Applies to all node version display strategies (nvm, node, command)

**Usage:**
```bash
# Add to ~/.bashrc or ~/.bash_profile before sourcing bash-it
export NODE_VERSION_CHECK_PROJECT=true
```

**Implementation:**
- New helper function `_is_node_project()` checks for package.json
- Modified `node_version_prompt()` to check NODE_VERSION_CHECK_PROJECT
- Modified `node_command_version_prompt()` for consistency
- Backwards compatible (disabled by default)

**Testing:**
- Passes shellcheck with no warnings
- Passes shfmt formatting checks
- Maintains backward compatibility

Closes #2216

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Use character class syntax [:@] to remove both characters in one operation
as suggested by @akinomyoga in review.

Co-Authored-By: akinomyoga <akinomyoga@users.noreply.github.com>
Add explicit return code 0 to all return statements as suggested by
@akinomyoga to avoid strange behaviors in trap handlers.

Co-Authored-By: akinomyoga <akinomyoga@users.noreply.github.com>
Updates all remaining test file references to reflect the rename from
todo.txt-cli.aliases.bash to todo.aliases.bash. This completes the
consistency improvements started in the main PR.

Changes:
- Updated test names to use "todo" instead of "todo.txt-cli"
- Updated symlink paths in test setup
- Updated assertions to expect new filename
- All 69 tests pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
* master:
  Fix symlink handling in uninstall backup
  Update planning docs with completed issues and PRs
  Improve uninstall script to preserve current config before restoration
  Fix down4me function URL malformation issue
  Apply review feedback: use git --git-dir and simplify awk
  Add comprehensive issue analysis and 2025 roadmap documentation
  Fix remote name detection function
  Add heuristic for finding default remote name
Update test expectations to use priority 750 (default for aliases) instead
of 150. The todo.aliases.bash file doesn't specify a custom priority, so it
uses BASH_IT_LOAD_PRIORITY_ALIAS which defaults to 750.

Changes:
- Updated helpers.bats test expectations from 150 to 750
- Updated completion tests from 150 to 750
- All 69 helpers tests now pass
- All 46 completion tests now pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@pull pull bot locked and limited conversation to collaborators Oct 7, 2025
@pull pull bot added the ⤵️ pull label Oct 7, 2025
@pull pull bot merged commit c8acca7 into devliq:master Oct 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants