shellwise 0.1.6 → 0.1.8
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 +12 -1
- package/package.json +4 -4
- package/scripts/uninstall.sh +11 -13
- /package/bin/{sw.js → sw.cjs} +0 -0
package/README.md
CHANGED
|
@@ -143,7 +143,18 @@ bun remove -g shellwise
|
|
|
143
143
|
# or: npm uninstall -g shellwise
|
|
144
144
|
```
|
|
145
145
|
|
|
146
|
-
Shell integration is automatically removed from your
|
|
146
|
+
Shell integration is automatically removed on uninstall. If you still see errors after uninstalling, manually remove these lines from your `~/.zshrc` (or `~/.bashrc`):
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
# shellwise shell integration
|
|
150
|
+
eval "$(shellwise init zsh)"
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
To fully clean up data:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
rm -rf ~/.local/share/shellwise
|
|
157
|
+
```
|
|
147
158
|
|
|
148
159
|
## License
|
|
149
160
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shellwise",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Smart command history with inline auto-suggest and fuzzy search for your terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"shellwise": "./bin/sw.
|
|
8
|
-
"sw": "./bin/sw.
|
|
7
|
+
"shellwise": "./bin/sw.cjs",
|
|
8
|
+
"sw": "./bin/sw.cjs"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"bin/sw.
|
|
11
|
+
"bin/sw.cjs",
|
|
12
12
|
"src/**/*.ts",
|
|
13
13
|
"scripts/*.sh"
|
|
14
14
|
],
|
package/scripts/uninstall.sh
CHANGED
|
@@ -9,21 +9,15 @@ remove_from_rc() {
|
|
|
9
9
|
[[ ! -f "$rc_file" ]] && return
|
|
10
10
|
|
|
11
11
|
if grep -qF "$MARKER" "$rc_file" 2>/dev/null; then
|
|
12
|
-
#
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/^'"$MARKER"'$/,/^eval /d
|
|
19
|
-
' "$rc_file"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
# Remove empty trailing lines left behind
|
|
23
|
-
sed -i'' -e :a -e '/^\n*$/{$d;N;ba' -e '}' "$rc_file" 2>/dev/null
|
|
12
|
+
# Create backup
|
|
13
|
+
cp "$rc_file" "${rc_file}.shellwise-backup"
|
|
14
|
+
|
|
15
|
+
# Remove marker line and the eval line after it
|
|
16
|
+
grep -vF "$MARKER" "$rc_file" | grep -v '^eval "\$(shellwise init' | grep -v '^eval "\$(sw init' > "${rc_file}.tmp"
|
|
17
|
+
mv "${rc_file}.tmp" "$rc_file"
|
|
24
18
|
|
|
25
19
|
# Cleanup backup
|
|
26
|
-
rm -f "${rc_file}.shellwise-
|
|
20
|
+
rm -f "${rc_file}.shellwise-backup"
|
|
27
21
|
|
|
28
22
|
echo "[shellwise] Removed from $rc_file"
|
|
29
23
|
fi
|
|
@@ -33,4 +27,8 @@ remove_from_rc "$HOME/.zshrc"
|
|
|
33
27
|
remove_from_rc "$HOME/.bashrc"
|
|
34
28
|
remove_from_rc "$HOME/.bash_profile"
|
|
35
29
|
|
|
30
|
+
# Stop daemon
|
|
31
|
+
pid=$(head -1 "/tmp/shellwise-$(id -u).pid" 2>/dev/null) && kill "$pid" 2>/dev/null
|
|
32
|
+
rm -f "/tmp/shellwise-$(id -u).pid" "/tmp/shellwise-$(id -u).sock"
|
|
33
|
+
|
|
36
34
|
echo "[shellwise] Uninstalled. Restart your terminal to complete."
|
/package/bin/{sw.js → sw.cjs}
RENAMED
|
File without changes
|