@@ -2,7 +2,7 @@
22set -euo pipefail
33
44APP=vibebox
5−REPO_URL="https://github.com/opencode-ai/vibebox"
5+REPO_URL="https://github.com/robcholz/vibebox"
66REQUESTED_VERSION=${VERSION:-}
77
88RED='\033[0;31m'
@@ -113,66 +113,10 @@ print_message info "Using cargo install from ${ORANGE}${REPO_URL}${GREEN}..."
113113
114114cargo "${install_args[@]}"
115115
116−add_to_path() {
117− local config_file=$1
118− local command=$2
119−
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"
124− else
125− print_message warning "Manually add the directory to $config_file (or similar):"
126− print_message info " $command"
127− fi
128−}
129−
130−XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
131−current_shell=$(basename "$SHELL")
132−
133−case $current_shell in
134− fish)
135− config_files="$HOME/.config/fish/config.fish"
136− ;;
137− zsh)
138− config_files="$HOME/.zshrc $HOME/.zshenv $XDG_CONFIG_HOME/zsh/.zshrc $XDG_CONFIG_HOME/zsh/.zshenv"
139− ;;
140− bash)
141− config_files="$HOME/.bashrc $HOME/.bash_profile $HOME/.profile $XDG_CONFIG_HOME/bash/.bashrc $XDG_CONFIG_HOME/bash/.bash_profile"
142− ;;
143− ash)
144− config_files="$HOME/.ashrc $HOME/.profile /etc/profile"
145− ;;
146− sh)
147− config_files="$HOME/.ashrc $HOME/.profile /etc/profile"
148− ;;
149− *)
150− config_files="$HOME/.bashrc $HOME/.bash_profile $XDG_CONFIG_HOME/bash/.bashrc $XDG_CONFIG_HOME/bash/.bash_profile"
151− ;;
152−esac
153−
154−config_file=""
155−for file in $config_files; do
156− if [[ -f $file ]]; then
157− config_file=$file
158− break
159− fi
160−done
161−
162−if [[ -z $config_file ]]; then
163− print_message error "No config file found for $current_shell. Checked files: ${config_files[@]}"
164− exit 1
165−fi
166−
167116if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
168− case $current_shell in
169− fish)
170− add_to_path "$config_file" "fish_add_path $INSTALL_DIR"
171− ;;
172− *)
173− add_to_path "$config_file" "export PATH=$INSTALL_DIR:\$PATH"
174− ;;
175− esac
117+ print_message warning "Cargo bin directory is not on PATH."
118+ print_message info "Add this to your shell profile if you can't run ${APP}:"
119+ print_message info " export PATH=$INSTALL_DIR:\$PATH"
176120fi
177121
178122if [ -n "${GITHUB_ACTIONS-}" ] && [ "${GITHUB_ACTIONS}" == "true" ]; then