From 88cc4ead56a66230b6ede7c5fa7cdc420b669fb1 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 17 Apr 2026 09:09:35 +0000 Subject: [PATCH] fix(install): use shelltime org URLs and install daemon binary correctly - Point CLI download at github.com/shelltime/cli (was legacy malamtime/cli, which no longer resolves). Manual-install flow was 404-ing on every platform. - Point shell hook downloads at github.com/shelltime/installation (was malamtime/installation). Hooks for zsh/bash/fish failed to fetch for both manual and Homebrew paths. - Install shelltime-daemon to ~/.shelltime/bin/shelltime-daemon instead of renaming the freshly extracted binary to .bak, so `shelltime daemon reinstall` can find it. --- install.bash | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/install.bash b/install.bash index 7baeec9..7add3b0 100644 --- a/install.bash +++ b/install.bash @@ -40,7 +40,7 @@ fi if [ "$BREW_INSTALLED" = false ]; then -CLI_FILE_NAME="https://github.com/malamtime/cli/releases/latest/download/cli_" +CLI_FILE_NAME="https://github.com/shelltime/cli/releases/latest/download/cli_" DAEMON_FILE_NAME="${CLI_FILE_NAME}daemon_" cd /tmp @@ -143,10 +143,7 @@ fi if [[ "$OS" == "Darwin" ]] || [[ "$OS" == "Linux" ]]; then mv shelltime "$HOME/.shelltime/bin/" if [ -f "shelltime-daemon" ]; then - if [ -f "$HOME/.shelltime/bin/shelltime-daemon.bak" ]; then - rm "$HOME/.shelltime/bin/shelltime-daemon.bak" - fi - mv shelltime-daemon "$HOME/.shelltime/bin/shelltime-daemon.bak" + mv shelltime-daemon "$HOME/.shelltime/bin/" fi # elif [[ "$OS" == "MINGW64_NT" ]] || [[ "$OS" == "MSYS_NT" ]] || [[ "$OS" == "CYGWIN_NT" ]]; then # mv shelltime /c/Windows/System32/ @@ -268,14 +265,14 @@ check_and_delete_bak "zsh.zsh" check_and_delete_bak "fish.fish" # Process zsh.zsh -process_file "zsh.zsh" "https://raw.githubusercontent.com/malamtime/installation/master/hooks/zsh.zsh" +process_file "zsh.zsh" "https://raw.githubusercontent.com/shelltime/installation/master/hooks/zsh.zsh" # Process fish.fish -process_file "fish.fish" "https://raw.githubusercontent.com/malamtime/installation/master/hooks/fish.fish" +process_file "fish.fish" "https://raw.githubusercontent.com/shelltime/installation/master/hooks/fish.fish" # Process bash.bash process_file "bash-preexec.sh" "https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh" -process_file "bash.bash" "https://raw.githubusercontent.com/malamtime/installation/master/hooks/bash.bash" +process_file "bash.bash" "https://raw.githubusercontent.com/shelltime/installation/master/hooks/bash.bash" # Add source lines to config files if [ -f "$HOME/.zshrc" ]; then