Skip to content

Commit

Permalink
Fix installer script args
Browse files Browse the repository at this point in the history
  • Loading branch information
Heliozoa committed Sep 10, 2024
1 parent c38b108 commit 63a23e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ if [ "$SHELLNAME" = "bash" ]; then
eval "mkdir -p $COMPLETIONS_PATH"

# calling the generate-completions subcommand to generate the completion script
eval "$CMD generate-completions --bash > $COMPLETIONS_PATH/tmc.bash"
eval "$CMD generate-completions bash > $COMPLETIONS_PATH/tmc.bash"

# adding the line to .bashrc so that bash knows where to look for
echo "source $COMPLETIONS_PATH/tmc.bash" >> "$PROFILEFILE"
Expand All @@ -143,7 +143,7 @@ elif [ "$SHELLNAME" = "zsh" ]; then
sed -i '/fpath/!b;/tmc-autocomplete/d' "$PROFILEFILE"

eval "mkdir -p $COMPLETIONS_PATH"
eval "$CMD generate-completions --bash > $COMPLETIONS_PATH/_tmc"
eval "$CMD generate-completions bash > $COMPLETIONS_PATH/_tmc"

echo "fpath=($COMPLETIONS_PATH/_tmc " '$fpath)' >> "$PROFILEFILE"

Expand Down

0 comments on commit 63a23e8

Please sign in to comment.