hintshell 0.3.2 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,12 @@
|
|
|
23
23
|
<p align="center">
|
|
24
24
|
<img src="assets/image2.png" alt="HintShell contextual suggestions in Git Bash" width="860" />
|
|
25
25
|
</p>
|
|
26
|
+
<p align="center">
|
|
27
|
+
<img src="assets/image3.png" alt="HintShell contextual suggestions in ZSH" width="860" />
|
|
28
|
+
</p>
|
|
29
|
+
<p align="center">
|
|
30
|
+
<img src="assets/image4.png" alt="HintShell contextual suggestions in Bash" width="860" />
|
|
31
|
+
</p>
|
|
26
32
|
---
|
|
27
33
|
|
|
28
34
|
## ⚡ Why HintShell?
|
|
@@ -98,11 +104,28 @@ HINTSHELL_DISABLE_AUTO_BASH=1 bash
|
|
|
98
104
|
```
|
|
99
105
|
|
|
100
106
|
- Git Bash keeps its existing Windows ConPTY backend. WSL2 uses a separate Unix pseudo-terminal backend and preserves the terminal's current working directory; neither changes PowerShell integration.
|
|
101
|
-
- Native Linux
|
|
107
|
+
- Native Linux Bash retains the existing `Tab`/`fzf` picker instead of starting the live wrapper.
|
|
102
108
|
- Set `HINTSHELL_BASH` to an explicit `bash.exe` path on Git Bash. Set `HINTSHELL_DISABLE_LIVE_OVERLAY=1` to reject the wrapper in unsupported terminals.
|
|
103
109
|
|
|
104
110
|
> **Preview limitation:** the live wrapper requires an ANSI-capable terminal. For full-screen terminal applications, bypass the wrapper and open them from a normal Bash session.
|
|
105
111
|
|
|
112
|
+
### macOS Bash / Zsh live overlay
|
|
113
|
+
|
|
114
|
+
On macOS, `hs init` configures the realtime overlay automatically for interactive Bash and Zsh sessions. For Bash login shells, it also adds a managed block to `~/.bash_profile` that loads `~/.bashrc`, so the overlay starts in macOS Terminal and iTerm2 without manual profile edits.
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
hs init
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Open a new terminal after initialization. The wrapper starts the same shell as a child through the Unix pseudo-terminal backend. It preserves the opening directory and synchronizes the current directory after each prompt, so contextual suggestions follow `cd` changes.
|
|
121
|
+
|
|
122
|
+
- **Tab** keeps native Bash/Zsh path and flag completion authoritative; HintShell accepts only compatible command-prefix suggestions.
|
|
123
|
+
- **Interactive programs** such as `gh auth login`, `fzf`, `vim`, and `nano` receive raw terminal input while running; the overlay resumes automatically at the next prompt.
|
|
124
|
+
- **Bash escape hatch:** `HINTSHELL_DISABLE_AUTO_BASH=1 bash`
|
|
125
|
+
- **Zsh escape hatch:** `HINTSHELL_DISABLE_AUTO_ZSH=1 zsh`
|
|
126
|
+
- Run `hs uninstall` to remove both the shell hook and the managed Bash login block.
|
|
127
|
+
- Use an escape hatch for full-screen terminal applications or any profile whose startup plugins are not compatible with a PTY wrapper.
|
|
128
|
+
|
|
106
129
|
### Zsh / Bash (macOS/Linux)
|
|
107
130
|
|
|
108
131
|
**Tab-to-Suggest** uses `fzf` when available. Type `git ` and press **Tab** to open a ranked command picker; **Enter** fills the command line. If `fzf` is unavailable, HintShell uses the top matching command without emitting an executable-path error.
|
|
@@ -124,11 +147,12 @@ Each request includes the current working directory and shell. HintShell merges
|
|
|
124
147
|
|
|
125
148
|
---
|
|
126
149
|
|
|
127
|
-
## ✨ What's new in 0.3.
|
|
150
|
+
## ✨ What's new in 0.3.4
|
|
128
151
|
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
152
|
+
- `hs init` automatically enables the live overlay for macOS Bash and Zsh; no opt-in environment variable is required.
|
|
153
|
+
- macOS Bash login sessions load `.bashrc` through a HintShell-managed block in `.bash_profile`, so the overlay works in Terminal and iTerm2.
|
|
154
|
+
- `hs uninstall` removes both the shell hook and HintShell's managed Bash login block.
|
|
155
|
+
- Git Bash and WSL2 retain their live-overlay backends; Linux Bash/Zsh outside WSL2 continue using Tab/fzf.
|
|
132
156
|
|
|
133
157
|
## 🔄 Updating
|
|
134
158
|
|