hintshell 0.3.3 → 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 +16 -9
- 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?
|
|
@@ -103,21 +109,21 @@ HINTSHELL_DISABLE_AUTO_BASH=1 bash
|
|
|
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
|
|
|
106
|
-
### macOS Bash / Zsh live overlay
|
|
112
|
+
### macOS Bash / Zsh live overlay
|
|
107
113
|
|
|
108
|
-
macOS
|
|
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.
|
|
109
115
|
|
|
110
116
|
```bash
|
|
111
|
-
export HINTSHELL_ENABLE_MACOS_LIVE_OVERLAY=1
|
|
112
117
|
hs init
|
|
113
118
|
```
|
|
114
119
|
|
|
115
|
-
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.
|
|
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.
|
|
116
121
|
|
|
117
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.
|
|
118
124
|
- **Bash escape hatch:** `HINTSHELL_DISABLE_AUTO_BASH=1 bash`
|
|
119
125
|
- **Zsh escape hatch:** `HINTSHELL_DISABLE_AUTO_ZSH=1 zsh`
|
|
120
|
-
-
|
|
126
|
+
- Run `hs uninstall` to remove both the shell hook and the managed Bash login block.
|
|
121
127
|
- Use an escape hatch for full-screen terminal applications or any profile whose startup plugins are not compatible with a PTY wrapper.
|
|
122
128
|
|
|
123
129
|
### Zsh / Bash (macOS/Linux)
|
|
@@ -141,11 +147,12 @@ Each request includes the current working directory and shell. HintShell merges
|
|
|
141
147
|
|
|
142
148
|
---
|
|
143
149
|
|
|
144
|
-
## ✨ What's new in 0.3.
|
|
150
|
+
## ✨ What's new in 0.3.4
|
|
145
151
|
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
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.
|
|
149
156
|
|
|
150
157
|
## 🔄 Updating
|
|
151
158
|
|