From d2929e0bf08d0435a58f345e2ee0b7e809aee5a5 Mon Sep 17 00:00:00 2001 From: Tomas Aschan <1550920+tomasaschan@users.noreply.github.com> Date: Fri, 3 Nov 2023 11:55:29 +0100 Subject: [PATCH] Fix completion guide for Bash --- docs/installation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index ae414173..25818e9f 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -63,8 +63,8 @@ Additionally, installs the command completion script. echo 'source <(switcher init bash)' >> ~/.bashrc # optionally use alias `s` instead of `switch` -echo 'source <(alias s=switch)' >> ~/.bashrc -echo 'source <(compdef _switcher switch)' >> ~/.bashrc +echo 'alias s=switch' >> ~/.bashrc +echo 'complete -o default -F _switcher s' >> ~/.bashrc ``` ### Zsh ```sh