From f60700c8279c1d8a9111cb2e42613628ffeebbdf Mon Sep 17 00:00:00 2001 From: "kwhk_gogpu@gangdong" Date: Mon, 23 Feb 2026 19:17:22 +0900 Subject: [PATCH] install.sh| zsh is not supported yet --- install.sh | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 6963ab0..e0131c0 100644 --- a/install.sh +++ b/install.sh @@ -1,21 +1,27 @@ #!/usr/bin/env bash # shellcheck disable=SC2016 -if [ ! -f "git-pad" ] || [ ! -f "autocompletion.sh" ]; then +if [ ! -f "git-pad" ] || { [ ! -f "autocompletion.sh" ] && [ ! -f "autocompletion.zsh" ]; } ; then echo '!E: Not in git-pad directory'; exit 1 fi -block=' -## git-pad -PATH=$PATH:'"$PWD"'; -export PATH; -. '"$PWD/autocompletion.sh;" - shell_name="$(basename "$SHELL")" case "$shell_name" in - bash) rc="$HOME/.bashrc" ;; - zsh) rc="$HOME/.zshrc" ;; + bash) rc="$HOME/.bashrc" + block=' +## git-pad +PATH=$PATH:'"$PWD"'; +export PATH; +. '"$PWD/autocompletion.bash;" + ;; + zsh) rc="$HOME/.zshrc" + block=' +## git-pad +PATH=$PATH:'"$PWD"'; +export PATH; +# Not supported yet . '"$PWD/autocompletion.zsh;" + ;; *) echo "Unsupported shell"; exit 1 ;; esac -- 2.51.2