@@ -2,7 +2,7 @@
2set -euo pipefail
2set -euo pipefail
5−REPO_URL="https://github.com/opencode-ai/vibebox"
5+REPO_URL="https://github.com/robcholz/vibebox"
6REQUESTED_VERSION=${VERSION:-}
6REQUESTED_VERSION=${VERSION:-}
8RED='\033[0;31m'
8RED='\033[0;31m'
@@ -113,66 +113,10 @@ print_message info "Using cargo install from ${ORANGE}${REPO_URL}${GREEN}..."
114cargo "${install_args[@]}"
114cargo "${install_args[@]}"
117− local config_file=$1
120− if [[ -w $config_file ]]; then
121− echo -e "\n# vibebox" >> "$config_file"
122− echo "$command" >> "$config_file"
123− print_message info "Added ${ORANGE}${APP}${GREEN} to \$PATH in $config_file"
125− print_message warning "Manually add the directory to $config_file (or similar):"
126− print_message info " $command"
130−XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
131−current_shell=$(basename "$SHELL")
133−case $current_shell in
135− config_files="$HOME/.config/fish/config.fish"
138− config_files="$HOME/.zshrc $HOME/.zshenv $XDG_CONFIG_HOME/zsh/.zshrc $XDG_CONFIG_HOME/zsh/.zshenv"
141− config_files="$HOME/.bashrc $HOME/.bash_profile $HOME/.profile $XDG_CONFIG_HOME/bash/.bashrc $XDG_CONFIG_HOME/bash/.bash_profile"
144− config_files="$HOME/.ashrc $HOME/.profile /etc/profile"
147− config_files="$HOME/.ashrc $HOME/.profile /etc/profile"
150− config_files="$HOME/.bashrc $HOME/.bash_profile $XDG_CONFIG_HOME/bash/.bashrc $XDG_CONFIG_HOME/bash/.bash_profile"
155−for file in $config_files; do
156− if [[ -f $file ]]; then
162−if [[ -z $config_file ]]; then
163− print_message error "No config file found for $current_shell. Checked files: ${config_files[@]}"
167if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
116if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
168− case $current_shell in
117+ print_message warning "Cargo bin directory is not on PATH."
169− fish)
118+ print_message info "Add this to your shell profile if you can't run ${APP}:"
170− add_to_path "$config_file" "fish_add_path $INSTALL_DIR"
173− add_to_path "$config_file" "export PATH=$INSTALL_DIR:\$PATH"
119+ print_message info " export PATH=$INSTALL_DIR:\$PATH"
178if [ -n "${GITHUB_ACTIONS-}" ] && [ "${GITHUB_ACTIONS}" == "true" ]; then
122if [ -n "${GITHUB_ACTIONS-}" ] && [ "${GITHUB_ACTIONS}" == "true" ]; then