Skip to content

Support powershell/bash/fish shell - #5

Merged
Sran012 merged 3 commits into
mainfrom
support-powershell/bash/fish-shell
Apr 26, 2026
Merged

Support powershell/bash/fish shell#5
Sran012 merged 3 commits into
mainfrom
support-powershell/bash/fish-shell

Conversation

@Sran012

@Sran012 Sran012 commented Apr 26, 2026

Copy link
Copy Markdown
Owner

What does this PR do?

Adds shell support for bash, fish and powershell. Previously only zsh was supported. Also fixes shell history detection to automatically read from the correct history file based on the active shell.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

How to test?

  1. npm install -g zap-search
  2. For bash: zap init bash >> ~/.bashrc && source ~/.bashrc
  3. For fish: zap init fish >> ~/.config/fish/config.fish
  4. For powershell: zap init powershell >> $PROFILE && . $PROFILE
  5. Run zap <pattern> — should cd into selected folder
  6. Run zap web <cmd> — should write selected command to prompt
  7. Run zap %<pattern> — should show history commands matching pattern

Checklist

  • I have tested this locally
  • I have updated the README if needed
  • Build passes (npm run build)

Sran012 added 3 commits April 26, 2026 11:40
…ly resolving binary path via Get-Command ApplicationType, preventing function self-calling; remove return exit_code as powershell functions output return values to pipeline causing unwanted stdout pollution
@Sran012
Sran012 merged commit 366a614 into main Apr 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant