From cc3e1576f2359cba70592cbdec84c804c1d83c32 Mon Sep 17 00:00:00 2001 From: Adam Daniels Date: Sat, 24 Jan 2026 11:21:25 -0500 Subject: [PATCH] docs: simplify Fish shell init instructions to idiomatic syntax Replace the verbose `eval (... | string collect)` pattern with the simpler and more idiomatic `... | source` for Fish shell setup. The `| source` pipe is Fish's native way to evaluate command output in the current shell context, making the instructions clearer and easier to copy-paste for Fish users. Updated all four instances across the README (gem install, quick start manual, shell setup reference, and installation sections). --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e5b0f7a..12a965c 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Then add to your shell: eval "$(try init)" # Fish - add to config.fish -eval (try init | string collect) +try init | source ``` ### Quick Start (Manual) @@ -52,7 +52,7 @@ chmod +x ~/.local/try.rb echo 'eval "$(ruby ~/.local/try.rb init ~/src/tries)"' >> ~/.zshrc # for fish shell users -echo 'eval (~/.local/try.rb init ~/src/tries | string collect)' >> ~/.config/fish/config.fish +echo '~/.local/try.rb init ~/src/tries | source' >> ~/.config/fish/config.fish ``` ## The Problem @@ -112,9 +112,9 @@ Not just substring matching - it's smart: - Fish: ```fish - eval (~/.local/try.rb init | string collect) + ~/.local/try.rb init | source # or pick a path - eval (~/.local/try.rb init ~/src/tries | string collect) + ~/.local/try.rb init ~/src/tries | source ``` Notes: @@ -232,9 +232,9 @@ After installation, add to your shell: - Fish: ```fish - eval "(try init | string collect)" + try init | source # or pick a path - eval "(try init ~/src/tries | string collect)" + try init ~/src/tries | source ``` ## Why Ruby?