Skip to content

Commit b827661

Browse files
docs(complete): Simplify sourcing fish completions
Unlike most other shells, fish supports sourcing directly from the standard input, which is simpler and more idiomatic.
1 parent f8b9e24 commit b827661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clap_complete/src/env/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
//!
4848
//! Fish
4949
//! ```fish
50-
//! echo "source (COMPLETE=fish your_program | psub)" >> ~/.config/fish/config.fish
50+
//! echo "COMPLETE=fish your_program | source" >> ~/.config/fish/config.fish
5151
//! ```
5252
//!
5353
//! Powershell

0 commit comments

Comments
 (0)