Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
fi
shellcheck -S error bin/gh-switch lib/*.sh

- name: Make install.sh executable
run: chmod +x install.sh

- name: Test installation
run: |
./install.sh
Expand Down
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ else
fi

# Optional: Install shell completions
read -p "Install shell completions? (y/n): " install_completions
if [[ -n "$CI" ]]; then
install_completions="n"
else
read -p "Install shell completions? (y/n): " install_completions
fi
if [[ "$install_completions" == "y" ]]; then
if [[ -f "completions/gh-switch.bash" ]] && [[ -d "/etc/bash_completion.d" ]]; then
sudo cp completions/gh-switch.bash /etc/bash_completion.d/
Expand Down