Skip to content

feat: add fish shell support#7

Open
mikaoelitiana wants to merge 1 commit intothisguymartin:mainfrom
mikaoelitiana:emdash/feat-feat-fish-shell-26i
Open

feat: add fish shell support#7
mikaoelitiana wants to merge 1 commit intothisguymartin:mainfrom
mikaoelitiana:emdash/feat-feat-fish-shell-26i

Conversation

@mikaoelitiana
Copy link

Summary

Closes #6

  • New file git-worktree-aliases.fish — complete fish-native port of all aliases and functions (wta, wtab, wtp, wtls, wtrm, wtcd, wtinfo, wtdiff, wtrn, wtlock, wtunlock, wtstatus, wtui, grove, zj-kill) using fish syntax (function/end, set -l, if/end, string builtins, psub)
  • install/install.sh — detects fish shell via $SHELL, writes to ~/.config/fish/config.fish, emits a fish-compatible source guard (if test -f ...; source ...; end), and cleans up both .sh and .fish lines on uninstall
  • README.md — documents fish-specific install commands (curl ... | bash instead of bash <(...) since fish doesn't support that process substitution syntax) and manual setup steps

The problem

Fish shell users couldn't run the one-liner installer because fish doesn't support bash <(...) process substitution:

fish: Invalid redirection target:
bash <(curl -s https://raw.githubusercontent.com/thisguymartin/grove/main/install/install.sh)

The fix

Fish users can now install with:

curl -s https://raw.githubusercontent.com/thisguymartin/grove/main/install/install.sh | bash

The installer detects fish, writes the correct config, and sources git-worktree-aliases.fish (valid fish syntax) instead of the bash .sh file.

- Add git-worktree-aliases.fish with all functions ported to fish syntax
- Detect fish shell in installer, write to ~/.config/fish/config.fish
- Use fish-compatible source guard (if test -f ... end) in config.fish
- Update uninstaller to remove both .sh and .fish source lines
- Document fish install steps in README (curl | bash workaround for psub)
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.

[feat]: add support for fish shell

1 participant