aws / aws/amazon-q-developer-cli

bug: Conflict with ble.sh , even closed autocomplete, q will cause ble.sh can't suggest anymore

Open
#2,641 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [] I have run `q restart` and replicated the issue again

### Operating system

Linux UM230093 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

### Expected behaviour
ble.sh: https://github.com/akinomyoga/ble.sh
Expect ble.sh can work well even installing amazon-q-developer-cli.
Settings maybe cause bug:
````
[[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash"

# ble.sh
source -- ~/.local/share/blesh/ble.sh
# ble.sh end

# Amazon Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash"
````

### Actual behaviour

ble.sh can't auto-suggest anymore after installing amazon-q-developer-cli. Recovered after removing `[[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash"` in` ~/.bashrc`.
```
# ble.sh
source -- ~/.local/share/blesh/ble.sh
# ble.sh end

# Amazon Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash" ]] && builtin source "${HOME}/.local/share/amazon-q/shell/bashrc.post.bash"
```

Above settings work.

### Steps to reproduce

_No response_

### Environment

```yaml

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.