Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
info about EDITOR environment variable for windows
  • Loading branch information
iamtalhaasghar authored Oct 19, 2021
commit 2b2ea339e276f11bccfc1c0be0f2ad139558066a
5 changes: 5 additions & 0 deletions documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ yarn global add gitlab-time-tracker --prefix /usr/local

... or download a compiled binary from [here](https://github.com/kriskbx/gitlab-time-tracker/releases) and put it into your `PATH`.

In windows, before running `gtt config`, make sure you have setup the enviornmental variable `EDITOR` correctly pointing to a text editor binary. Otherwise, you will get an error just like mentioned in [issue #96](https://github.com/kriskbx/gitlab-time-tracker/issues/96)

![image](https://user-images.githubusercontent.com/46928648/137857047-6b764226-9515-4594-8256-c7cd6f004f9a.png)


Run the config command to create a config file and open it in your default editor.
In linux terminal, you must set your preferred editor in the environment. For example, use `export EDITOR=vim` to edit the files with vim (put this in `.bashrc` or similar to have it always configured).
If nothing happens, open the file manually: `~/.local/share/.gtt` - on Windows: `C:\Users\YourUserName\.gtt\config.yml`
Expand Down