Skip to content

Commit 40bf7f2

Browse files
authored
Merge pull request #94 from adam12/update-fish-instructions
docs: simplify Fish shell init instructions to idiomatic syntax
2 parents 5d8d99d + cc3e157 commit 40bf7f2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Then add to your shell:
3737
eval "$(try init)"
3838

3939
# Fish - add to config.fish
40-
eval (try init | string collect)
40+
try init | source
4141
```
4242

4343
### Quick Start (Manual)
@@ -52,7 +52,7 @@ chmod +x ~/.local/try.rb
5252
echo 'eval "$(ruby ~/.local/try.rb init ~/src/tries)"' >> ~/.zshrc
5353

5454
# for fish shell users
55-
echo 'eval (~/.local/try.rb init ~/src/tries | string collect)' >> ~/.config/fish/config.fish
55+
echo '~/.local/try.rb init ~/src/tries | source' >> ~/.config/fish/config.fish
5656
```
5757

5858
## The Problem
@@ -112,9 +112,9 @@ Not just substring matching - it's smart:
112112
- Fish:
113113

114114
```fish
115-
eval (~/.local/try.rb init | string collect)
115+
~/.local/try.rb init | source
116116
# or pick a path
117-
eval (~/.local/try.rb init ~/src/tries | string collect)
117+
~/.local/try.rb init ~/src/tries | source
118118
```
119119

120120
Notes:
@@ -232,9 +232,9 @@ After installation, add to your shell:
232232
- Fish:
233233

234234
```fish
235-
eval "(try init | string collect)"
235+
try init | source
236236
# or pick a path
237-
eval "(try init ~/src/tries | string collect)"
237+
try init ~/src/tries | source
238238
```
239239

240240
## Why Ruby?

0 commit comments

Comments
 (0)