Skip to content

Commit 36a09e9

Browse files
AnnatarHeclaude
andauthored
fix(install): use shelltime org URLs and install daemon binary correctly (#9)
- 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. Co-authored-by: Claude <noreply@anthropic.com>
1 parent c5776cb commit 36a09e9

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

install.bash

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fi
4040

4141
if [ "$BREW_INSTALLED" = false ]; then
4242

43-
CLI_FILE_NAME="https://github.com/malamtime/cli/releases/latest/download/cli_"
43+
CLI_FILE_NAME="https://github.com/shelltime/cli/releases/latest/download/cli_"
4444
DAEMON_FILE_NAME="${CLI_FILE_NAME}daemon_"
4545

4646
cd /tmp
@@ -143,10 +143,7 @@ fi
143143
if [[ "$OS" == "Darwin" ]] || [[ "$OS" == "Linux" ]]; then
144144
mv shelltime "$HOME/.shelltime/bin/"
145145
if [ -f "shelltime-daemon" ]; then
146-
if [ -f "$HOME/.shelltime/bin/shelltime-daemon.bak" ]; then
147-
rm "$HOME/.shelltime/bin/shelltime-daemon.bak"
148-
fi
149-
mv shelltime-daemon "$HOME/.shelltime/bin/shelltime-daemon.bak"
146+
mv shelltime-daemon "$HOME/.shelltime/bin/"
150147
fi
151148
# elif [[ "$OS" == "MINGW64_NT" ]] || [[ "$OS" == "MSYS_NT" ]] || [[ "$OS" == "CYGWIN_NT" ]]; then
152149
# mv shelltime /c/Windows/System32/
@@ -268,14 +265,14 @@ check_and_delete_bak "zsh.zsh"
268265
check_and_delete_bak "fish.fish"
269266

270267
# Process zsh.zsh
271-
process_file "zsh.zsh" "https://raw.githubusercontent.com/malamtime/installation/master/hooks/zsh.zsh"
268+
process_file "zsh.zsh" "https://raw.githubusercontent.com/shelltime/installation/master/hooks/zsh.zsh"
272269

273270
# Process fish.fish
274-
process_file "fish.fish" "https://raw.githubusercontent.com/malamtime/installation/master/hooks/fish.fish"
271+
process_file "fish.fish" "https://raw.githubusercontent.com/shelltime/installation/master/hooks/fish.fish"
275272

276273
# Process bash.bash
277274
process_file "bash-preexec.sh" "https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh"
278-
process_file "bash.bash" "https://raw.githubusercontent.com/malamtime/installation/master/hooks/bash.bash"
275+
process_file "bash.bash" "https://raw.githubusercontent.com/shelltime/installation/master/hooks/bash.bash"
279276

280277
# Add source lines to config files
281278
if [ -f "$HOME/.zshrc" ]; then

0 commit comments

Comments
 (0)