X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=zoxide%2Finstall.sh;h=0c0c3cded34a4d219aeca6432cc1b58ec8b1504b;hb=dfb477380c1c9118d4e2361ecd26ceedfdb10098;hp=33127b3f25f4381c2bf3f8c780ef56f3a125807b;hpb=29d0b6075ede95931cae301d7050d60309e08ff7;p=webi-installers%2F.git diff --git a/zoxide/install.sh b/zoxide/install.sh index 33127b3..0c0c3cd 100644 --- a/zoxide/install.sh +++ b/zoxide/install.sh @@ -36,6 +36,21 @@ function __init_zoxide() { zoxide --version 2>/dev/null | head -n 1 | cut -d '-' -f 1 | cut -b '9-' } + # shellcheck disable=SC2016 + pkg_done_message() { + echo 'zoxide was installed successfully. Next, you'\''ll need to set it up on your shell:' + echo '' + echo '- For bash, add this line to ~/.bashrc:' + echo ' eval "$(zoxide init bash)"' + echo '' + echo '- For fish, add this line to ~/.config/fish/config.fish:' + echo ' zoxide init fish | source' + echo '' + echo '- For zsh, add this line to ~/.zshrc:' + echo ' eval "$(zoxide init zsh)"' + echo '' + echo '- For any other shell, see the instructions at https://github.com/ajeetdsouza/zoxide.' + } } __init_zoxide