Skip to content

[feat] Add wakatime autoinstall to setup.sh #332

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

giacomosmcodes
Copy link

This adds some questions for people to autoinstall VS code support or terminal support. It includes a check to see if the VS code cli stuff is installed. Feel free to add support for other editors :)

sorry for this horrible pr desc, it took 2 mins

@zachlatta
Copy link
Member

Can you submit a video of yourself running this in Mac and Linux showing it working? Thanks! Also FYI terminal-wakatime only tracks shell commands, not time spent in nano.

@giacomosmcodes
Copy link
Author

Can you submit a video of yourself running this in Mac and Linux showing it working? Thanks! Also FYI terminal-wakatime only tracks shell commands, not time spent in nano.

@zachlatta Sorry, I wasn't sure how it tracked time. I just assumed that was what it was :)

I'll get the PoCs done soon

@giacomosmcodes
Copy link
Author

@zachlatta Arch Linux PoC

arch_improvedsetup_poc.mp4

Environment vars (API key, URLs, etc) were configured the same way they are in the current setup snippet previous to recording (no leaked creds).

It succesfully runs the official WakaTime terminal installer, as is seen in PoC, so any success/failure there would also occur with the snippet provided in docs for terminal support.

@giacomosmcodes
Copy link
Author

@zachlatta Here is the MacOS PoC (sorry for the low quality)

macos_setup_poc.mp4

Like in the previous PoC, environment vars were configured before. So far this hasn't been an issue on Linux, and rarely happens on MacOS, but if VS Code is not in $PATH the script will exit and display instructions for adding it (go into command palette and type "Shell Command: Install 'code' command in PATH", then rerun script).

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

Successfully merging this pull request may close these issues.

2 participants