Skip to content

Commit 8af2514

Browse files
authored
feat: bash completions
1 parent a7484ce commit 8af2514

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ fi
182182

183183

184184
if [[ $SHELL == 'bash'* ]]; then
185-
mkdir -p "$HOME"/.foundry/etc
186-
forge completions bash > "$HOME"/.foundry/etc/forge_completions_bash
187-
cast completions bash > "$HOME"/.foundry/etc/cast_completions_bash
188-
echo >>"$HOME"/.bash_profile && echo "if [ -f $HOME/.foundry/forge_completions_bash ]; then source $HOME/.foundry/etc/forge_completions_bash fi" >>$$HOME/.bash_profile
189-
echo >>"$HOME"/.bash_profile && echo "if [ -f $HOME/.foundry/cast_completions_bash ]; then source $HOME/.foundry/etc/cast_completions_bash fi" >>$$HOME/.bash_profile
185+
forge completions bash > /usr/local/etc/bash_completion.d/forge
186+
cast completions bash > /usr/local/etc/bash_completion.d/cast
187+
188+
source /usr/local/etc/bash_completion
189+
echo >>"[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion ">>$$HOME/.bash_profile
190190
fi
191191

192192
echo && echo "Detected your preferred shell is ${PREF_SHELL} and added foundryup to PATH. Run 'source ${PROFILE}' or start a new terminal session to use foundryup."

0 commit comments

Comments
 (0)