Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] allow users use their wakatime #18

Open
Freed-Wu opened this issue Jan 11, 2023 · 1 comment
Open

[feature] allow users use their wakatime #18

Freed-Wu opened this issue Jan 11, 2023 · 1 comment

Comments

@Freed-Wu
Copy link

In https://github.com/irondoge/bash-wakatime/blob/master/bash-wakatime.sh#L17

    (~/.wakatime/wakatime-cli --write --plugin "bash-wakatime/$version" --entity-type app --project "$project" --entity "$entity" 2>&1 > /dev/null &)

Why not let user install wakatime-cli from their package manager (apt/yum/pacman/emerge/brew/nix)?

@Freed-Wu
Copy link
Author

I found @alanhamlett change wakatime-cli to ~/.wakatime/wakatime-cli. Why not

bin=$(command -v wakatime-cli 2>/dev/null)
if [[ -z $bin ]]; then
  bin=~/.wakatime/wakatime-cli
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant