You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The `export TMPO_DEV=1` command only applies to your **current terminal session**. When you close the terminal, it resets to production mode. This is intentional for safety - you must explicitly enable dev mode each time.
61
+
62
+
**Making it persistent (optional):**
63
+
64
+
If you prefer to always use dev mode, add it to your shell profile:
65
+
66
+
```bash
67
+
# For zsh (macOS default)
68
+
echo'export TMPO_DEV=1'>>~/.zshrc
69
+
70
+
# For bash
71
+
echo'export TMPO_DEV=1'>>~/.bashrc
72
+
```
73
+
74
+
Then restart your terminal or run `source ~/.zshrc` (or `source ~/.bashrc`).
75
+
76
+
**Benefits of development mode:**
77
+
78
+
- Your real time tracking data stays safe
79
+
- You can test database changes without risk
80
+
- You can easily clean up test data (`rm -rf ~/.tmpo-dev/`)
81
+
40
82
### Building with Version Information
41
83
42
84
To build with version information injected (useful for testing version display):
@@ -120,16 +162,22 @@ tmpo/
120
162
All user data is stored locally in:
121
163
122
164
```
123
-
~/.tmpo/
124
-
└── tmpo.db # SQLite database
165
+
~/.tmpo/ # Production (default)
166
+
└── tmpo.db
167
+
168
+
~/.tmpo-dev/ # Development (when TMPO_DEV=1)
169
+
└── tmpo.db
125
170
```
126
171
127
172
The database schema includes:
128
173
129
-
- Time entries (start/end times, project, description)
174
+
- Time entries (start/end times, project, description, hourly rate)
130
175
- Project metadata (derived from entries)
131
176
- Automatic indexing for fast queries
132
177
178
+
> [!NOTE]
179
+
> See [Development Mode](#development-mode) for information on using the development database during local development.
180
+
133
181
### How Project Detection Works
134
182
135
183
When a user runs `tmpo start`, the project name is detected in this priority order:
0 commit comments