mirror of
https://github.com/denisidoro/navi
synced 2025-02-16 12:38:28 +00:00
Make widget sourcing defensive
This commit is contained in:
parent
4c0151c95c
commit
22c0d03586
1 changed files with 2 additions and 2 deletions
|
@ -109,10 +109,10 @@ By running `navi` for the first time, you'll be suggested to download some cheat
|
|||
You can use **navi** as a widget to your shell. This way, your history is correctly populated and you can edit the command as you wish before executing it. To set it up, add this line to your `.bashrc`-like file:
|
||||
```sh
|
||||
# bash
|
||||
source <(navi widget bash)
|
||||
source <(echo "$(navi widget bash)")
|
||||
|
||||
# zsh
|
||||
source <(navi widget zsh)
|
||||
source <(echo "$(navi widget zsh)")
|
||||
|
||||
# fish
|
||||
navi widget fish | source
|
||||
|
|
Loading…
Add table
Reference in a new issue