wakatime-zsh-plugin icon indicating copy to clipboard operation
wakatime-zsh-plugin copied to clipboard

wakatime-cli not installed (Windows fix)

Open hiq-davidholmstedt opened this issue 3 years ago • 1 comments

I use this plugin for Git Windows and the change for path in commit #15 breaks that support!

if (( ! $+commands[wakatime] )); then  <--- This works
if ! wakatime_loc="$(type -p "$wakatime_bin")"; then <--- This does not work

Maybe some type of else check using the old logic might work.

It seems that the type -p command does not actually work on windows. So if you get questions about this in the future that might be the issue.

hiq-davidholmstedt avatar Nov 15 '21 10:11 hiq-davidholmstedt

Thanks! @hiq-davidholmstedt can you please send a pr with a windows-friendly solution? I don't have any windows machines, so I cannot test it.

sobolevn avatar Nov 15 '21 12:11 sobolevn