shellwise 0.1.2 → 0.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/setup.sh +6 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shellwise",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Smart command history with inline auto-suggest and fuzzy search for your terminal",
5
5
  "type": "module",
6
6
  "bin": {
package/scripts/setup.sh CHANGED
@@ -11,14 +11,12 @@ BOLD='\033[1m'
11
11
  RESET='\033[0m'
12
12
 
13
13
  # Detect if this is a local (not global) install
14
- if [[ -z "$(command -v shellwise 2>/dev/null)" && -z "$(command -v sw 2>/dev/null)" ]]; then
15
- # Check if we're inside node_modules (local install)
16
- if [[ "$PWD" == *"node_modules"* ]] || [[ "${INIT_CWD:-}" == *"node_modules"* ]]; then
17
- echo -e "${YELLOW}${BOLD}[shellwise]${RESET} This is a CLI tool — install it globally:"
18
- echo -e " ${BOLD}bun install -g shellwise${RESET}"
19
- echo -e " ${DIM}or: npm install -g shellwise${RESET}"
20
- exit 0
21
- fi
14
+ # Only check for 'shellwise' binary (not 'sw' which may conflict with other tools)
15
+ if [[ -z "$(command -v shellwise 2>/dev/null)" ]]; then
16
+ echo -e "${YELLOW}${BOLD}[shellwise]${RESET} This is a CLI tool install it globally:"
17
+ echo -e " ${BOLD}bun install -g shellwise${RESET}"
18
+ echo -e " ${DIM}or: npm install -g shellwise${RESET}"
19
+ exit 0
22
20
  fi
23
21
 
24
22
  MARKER="# shellwise shell integration"