From 61a28d92d01e9e93b686f09a0f3ce6dce02197d4 Mon Sep 17 00:00:00 2001 From: Lars Quentin Date: Wed, 29 Jul 2026 14:57:14 +0200 Subject: [PATCH] Use $HOME in shell rc for better dotfile management --- install | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install b/install index b0716d532082..4fd51d4dc8ab 100755 --- a/install +++ b/install @@ -411,28 +411,28 @@ if [[ "$no_modify_path" != "true" ]]; then if [[ -z $config_file ]]; then print_message warning "No config file found for $current_shell. You may need to manually add to PATH:" - print_message info " export PATH=$INSTALL_DIR:\$PATH" + print_message info " export PATH=\$HOME/.opencode/bin:\$PATH" elif [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then case $current_shell in fish) - add_to_path "$config_file" "fish_add_path $INSTALL_DIR" + add_to_path "$config_file" "fish_add_path \$HOME/.opencode/bin" ;; zsh) - add_to_path "$config_file" "export PATH=$INSTALL_DIR:\$PATH" + add_to_path "$config_file" "export PATH=\$HOME/.opencode/bin:\$PATH" ;; bash) - add_to_path "$config_file" "export PATH=$INSTALL_DIR:\$PATH" + add_to_path "$config_file" "export PATH=\$HOME/.opencode/bin:\$PATH" ;; ash) - add_to_path "$config_file" "export PATH=$INSTALL_DIR:\$PATH" + add_to_path "$config_file" "export PATH=\$HOME/.opencode/bin:\$PATH" ;; sh) - add_to_path "$config_file" "export PATH=$INSTALL_DIR:\$PATH" + add_to_path "$config_file" "export PATH=\$HOME/.opencode/bin:\$PATH" ;; *) export PATH=$INSTALL_DIR:$PATH print_message warning "Manually add the directory to $config_file (or similar):" - print_message info " export PATH=$INSTALL_DIR:\$PATH" + print_message info " export PATH=\$HOME/.opencode/bin:\$PATH" ;; esac fi