Skip to content

Commit

Permalink
fix bash completions installation
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Aug 29, 2023
1 parent f47e2aa commit c52d52d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ install_completions() {

if [[ -n $compdir ]]; then
printf "copying to %s\n" "$compdir"
echo "eval \"\$($cmd)\"" | $sudo tee "${compdir}/${dir}" >/dev/null
echo "$cmd" | $sudo tee "${compdir}/${dir}" >/dev/null
else
printf "%s %s\n" "$(red WARN)" "skipping completions installation, compdir not found"
echo " install it manually by adding this to your startup script:"
echo " eval \"\$($cmd)\""
echo " $cmd"
fi
}

Expand Down Expand Up @@ -117,7 +117,7 @@ copy_executable 'rush'
copy_man 'doc'

section "Installing bash completions"
install_completions "rush_completions" "rush"
install_completions "eval \"\$(rush completions)\"" "rush"

section "Done"
rush --version

0 comments on commit c52d52d

Please sign in to comment.